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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-04-2005, 11:56 AM
|
#1
|
LQ Newbie
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28
Rep:
|
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)
|
|
|
02-04-2005, 12:02 PM
|
#2
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
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.
|
|
|
02-04-2005, 12:03 PM
|
#3
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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>
|
|
|
02-04-2005, 12:05 PM
|
#4
|
LQ Newbie
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28
Original Poster
Rep:
|
(enz was dutch for etc. sorry)
Ok, but i says that he can't find the files
what now?
|
|
|
02-04-2005, 12:09 PM
|
#5
|
LQ Newbie
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28
Original Poster
Rep:
|
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 12:11 PM.
|
|
|
02-04-2005, 01:35 PM
|
#6
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
cd /Home/Gentoox
|
|
|
02-04-2005, 01:52 PM
|
#7
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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
|
|
|
02-04-2005, 02:58 PM
|
#8
|
Member
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849
Rep:
|
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
|
|
|
02-05-2005, 06:39 AM
|
#9
|
LQ Newbie
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28
Original Poster
Rep:
|
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
|
|
|
02-05-2005, 09:02 AM
|
#10
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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: 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.
|
|
|
02-05-2005, 10:48 AM
|
#11
|
LQ Newbie
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28
Original Poster
Rep:
|
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 10:50 AM.
|
|
|
02-05-2005, 12:10 PM
|
#12
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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.
|
|
|
02-05-2005, 12:30 PM
|
#13
|
LQ Newbie
Registered: Feb 2005
Location: Holland
Distribution: Suse 10.0
Posts: 28
Original Poster
Rep:
|
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.
|
|
|
02-05-2005, 12:52 PM
|
#14
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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 01:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|