LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-15-2006, 01:35 PM   #1
Rob Pijpers
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
shell question


Hello All,

Could someone explaine what is going on when I type cd \ in the console, the prompt changes to > and remain so until I type Ctrl C.

Regards,

Rob
 
Old 08-15-2006, 01:58 PM   #2
khammack
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
You're using the wrong slash. ;-) What you really want is this:

cd /


The other slash, '\' is used to tell the shell that you aren't finished typing this line yet, so keep reading just like you haven't pressed ENTER.

Try this:

$ cd \ [ENTER]
> / [ENTER]

Obviously don't type the [ENTER] part, that's where you hit the ENTER/RETURN key.

You can learn more about the cli by going here:

linuxcommand.org

-kev
 
Old 08-15-2006, 05:28 PM   #3
khammack
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
Now that I have at least 3 posts, I can actually post a clickable link for you:

http://linuxcommand.org

-kev
 
Old 08-15-2006, 06:02 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Anytime you get a > character it means that it is still waiting for some type of input. As said the \ is used in programming to tell the compiler that the line is continued through the next line. every thing in linux as far as directories are always / IE /etc, /usr/src, and so on. The bash shell is pretty much a programming shell also.
 
Old 08-16-2006, 03:12 AM   #5
Rob Pijpers
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your tips!

Regards,

Rob
 
  


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
shell scripting question JSLayton Linux - General 4 06-01-2006 07:55 AM
Shell question satimis Linux - General 5 08-11-2005 10:57 AM
shell question supervillan Linux - Newbie 4 10-20-2004 07:50 AM
c(++) shell question karlan Programming 3 09-14-2003 05:07 AM
question about shell jaylee Linux - General 8 06-22-2003 10:42 PM


All times are GMT -5. The time now is 01:57 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration