Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-17-2003, 06:38 PM   #1
LQ Newbie
Registered: Mar 2003
Distribution: suse
Posts: 9

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


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" ?

Last edited by pelgrim; 03-17-2003 at 06:40 PM.
Old 03-17-2003, 06:49 PM   #2
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, 06:58 PM   #3
LQ Newbie
Registered: Mar 2003
Distribution: suse
Posts: 9

Original Poster
Rep: Reputation: 0

Thanks, for telling me

Old 03-17-2003, 07:22 PM   #4
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, 07:30 PM   #5
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


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 01:53 AM
change profile to show current directory jpolachak Linux - Newbie 2 01-20-2005 08:36 PM
Search and Replace: Asian Words to English Words ieeestd802 Linux - Software 0 10-27-2004 08:48 PM
ls - show first x files in directory ottergoose Linux - Newbie 2 09-06-2004 12:45 AM
show size of all filesin a directory watashiwaotaku7 Linux - Newbie 4 09-30-2003 12:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 PM.

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