LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   terminal -> codes (https://www.linuxquestions.org/questions/linux-newbie-8/terminal-codes-286225/)

aap 02-04-2005 11:56 AM

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)

XavierP 02-04-2005 12:02 PM

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.

Crashed_Again 02-04-2005 12:03 PM

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>

aap 02-04-2005 12:05 PM

(enz was dutch for etc. sorry)

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

:(

what now?

aap 02-04-2005 12:09 PM

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)

Crashed_Again 02-04-2005 01:35 PM

cd /Home/Gentoox

harken 02-04-2005 01:52 PM

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 :study: :study: :study:

Linux~Powered 02-04-2005 02:58 PM

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

aap 02-05-2005 06:39 AM

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

harken 02-05-2005 09:02 AM

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.

aap 02-05-2005 10:48 AM

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?

harken 02-05-2005 12:10 PM

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.

aap 02-05-2005 12:30 PM

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.

harken 02-05-2005 12:52 PM

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


All times are GMT -5. The time now is 04:55 AM.