LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-04-2005, 12:56 PM   #1
aap
LQ Newbie
 
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28

Rep: Reputation: 15
terminal -> codes


Can i use the same codes (DOS) in the terminal.

Like:

dir
cd..
cd folder
dir/w
enz enz

Ok, now an other problem.

I uploaded a tar.gz file in the Desktop directory.
I want to extract the files.

I go to the terminal, go to the desktop directory, with: cd Desktop

then I type: tar zxf *filename*.tar.gz

then this comes on screen:

Err filename.tar.gz: Cannot open: No such a file or directory
Err Error is not recoverable:......
Err Child returned status 2
Err Error exit delayed from previous.................


and so on



WHAT AM I DOING WRONG? PLEASE HELP!

(running on xbox btw) (gentoox)
 
Old 02-04-2005, 01:02 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
dir, cd .. and cd /folder/folder/folder all work in a similar way to the way they do in DOS. Type man cd or man <command> to get the full range of switches and other help.

I usually untar a file with tar -zxvf <filename>.tar.gz.
 
Old 02-04-2005, 01:03 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
dir = ls
cd.. is the same
cd folder is the same
dir /W = ls -m (I think)
enz enz = I have no idea what that is

To untar that file do:

tar xzvf <file>

<EDIT> Somebody beat me to it!</EDIT>
 
Old 02-04-2005, 01:05 PM   #4
aap
LQ Newbie
 
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
(enz was dutch for etc. sorry)

Ok, but i says that he can't find the files



what now?
 
Old 02-04-2005, 01:09 PM   #5
aap
LQ Newbie
 
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
Ok, I just discovered that I was in the wrong directory ;P

The file is in Home/Gentoox

So, how do i get there?!?

And I cant FTP the file to the directory where im now in (/root/desktop)

Last edited by aap; 02-04-2005 at 01:11 PM.
 
Old 02-04-2005, 02:35 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
cd /Home/Gentoox
 
Old 02-04-2005, 02:52 PM   #7
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
I think you mean you don't know how to copy the file, not FTP it. If so, use the 'cp' command:
Code:
cp /home/Gentoox/filename.tar.gz /root/desktop/
Similarly, use 'mv' to move it.

And read this course. Or any other you'll like as the only way to get things done right is to
 
Old 02-04-2005, 03:58 PM   #8
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Rep: Reputation: 31
Quote:
Can i use the same codes (DOS) in the terminal.
If you're used to DOS commands you can make aliases for them and put them in a .bashrc or .bash_profile
 
Old 02-05-2005, 07:39 AM   #9
aap
LQ Newbie
 
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
quote:
--------------------------------------------------------------------------------
Can i use the same codes (DOS) in the terminal.
--------------------------------------------------------------------------------



If you're used to DOS commands you can make aliases for them and put them in a .bashrc or .bash_profile
Sorry, I don't get that, im just a Noob



_____________________________________


Just one thing


What is the code for a folder up?
I tried "cd.."

but that won't work
 
Old 02-05-2005, 10:02 AM   #10
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
For going up one level in the direcotry structure the command is 'cd ..' Mind the space between the letter 'd' and the first dot.

Regarding aliases: in your home folder you should have a file named '.bashrc' which holds the settings for some of the behaviours of your console. If you'd add in it a line like:
Code:
alias rm='rm -i'
then, when you attempt to delete a file, you will be prompted for confirmation.
In fact, aliases allow you to specify by default some parameters for certain commands.
 
Old 02-05-2005, 11:48 AM   #11
aap
LQ Newbie
 
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
geez, F*ck*ing spaces...

:P It works fine now

I untarred some files. But now is my next problem:

On screen is: (without the dots)

xbox ttt-0.9.2 ls

AUTHORS................................config.log
COPYING................................config.status(green)
ChangeLog................................confis.sub(green)
INSTALL................................configure(green)
Makefile................................configure.in
Makefile.am................................install-sh(green)
Makefile.in................................libtool(green)
NEWS................................ ltconfig(green)
README................................ltmain.sh
acconfig.h................................missing(green)
aclocal.m4 ................................mkinstalldirs(green)
config.cache................................src(blue)
config.guess(green)................................stamp-h
config.h................................stamp-h.in
config.h.in

xbox ttt-0.9.2



The command i made before:

tar zxf ttt-0.9.2.tar.gz
cd ttt-0.9.2
./configure
make
make install

Above was the result


So, (it is a game) HOW DO I RUN THE GAME NOW?

Last edited by aap; 02-05-2005 at 11:50 AM.
 
Old 02-05-2005, 01:10 PM   #12
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
It must be said that you should read the INSTALL and README files while they're provided. Looks like the program has itself installed elsewhere, probably in /usr/share or /usr/share/games. What's the eaxct name of the program? Issue that name at the command prompt and see if something happens.
 
Old 02-05-2005, 01:30 PM   #13
aap
LQ Newbie
 
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
In the readme file is the following:

INSTALLATION
------------

First run `make depend'. Then, compile with `make' (or, to compile
with MPI, run `make MPI=1' or uncomment the line `MPI = 1' in the
Makefile). I've tested ttt with Linux (x86) and Solaris (sparc). It
should work on any UNIX platform, though.


So when I type: make depend
He says an Error
The game is TicTacToe ( :P )

In the Install file is nothing.
 
Old 02-05-2005, 01:52 PM   #14
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
What error do you get? Maybe it requires some library you don't have (yet I'd doubt for a tictactoe game).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ls color codes jpstunr Linux - Newbie 3 03-20-2012 03:41 PM
Are the hex codes for colors in a jpg the same codes as used in html? abefroman Linux - Security 3 07-31-2005 04:21 PM
exit codes introuble Programming 2 05-08-2005 01:53 PM
return codes in c exvor Programming 4 01-21-2005 09:45 PM
How to Compare the c/c++ codes muneebs123 Programming 4 02-19-2004 01:53 AM


All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration