LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-17-2003, 05:38 PM   #1
pelgrim
LQ Newbie
 
Registered: Mar 2003
Distribution: suse
Posts: 9

Rep: Reputation: 0
How do I show the structur of directory with multiple words?


Hello,

I cannot open the dir "Program file" using
"cd /Program Files". In fact all the dirs named with more then 1 word I cannot display their structure (like
"My documents" , etc)

Which parameter do I use to open dir's such as "program Files" ?
Thanks

Last edited by pelgrim; 03-17-2003 at 05:40 PM.
 
Old 03-17-2003, 05:49 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Do exactly what you did in the post -

cd "/program files" - *nix uses spaces as delimiters, so you have to put it in quotes to get the shell to treat it as one thing.
 
Old 03-17-2003, 05:58 PM   #3
pelgrim
LQ Newbie
 
Registered: Mar 2003
Distribution: suse
Posts: 9

Original Poster
Rep: Reputation: 0
re:

Thanks, for telling me

pelgrim
 
Old 03-17-2003, 06:22 PM   #4
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
if u use bash shell,
cd Pro[tab] will complete it for u
 
Old 03-17-2003, 06:30 PM   #5
stikboy
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: RedHat 7.1/Redhat 8.0/Gentoo 1.4
Posts: 45

Rep: Reputation: 15
and likewise,
cd /Program\ Files

will work also - the \ tells the shell that a special character is coming up
 
  


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
Directory and files don't show in Debian jonr Debian 1 05-17-2005 12:53 AM
change profile to show current directory jpolachak Linux - Newbie 2 01-20-2005 07:36 PM
Search and Replace: Asian Words to English Words ieeestd802 Linux - Software 0 10-27-2004 07:48 PM
ls - show first x files in directory ottergoose Linux - Newbie 2 09-05-2004 11:45 PM
show size of all filesin a directory watashiwaotaku7 Linux - Newbie 4 09-29-2003 11:49 PM


All times are GMT -5. The time now is 07:56 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