Home / Software / BSD, Linux, and Unix / How to change directory having 2 words?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: How to change directory having 2 words?  (Read 1214 times)
homeport
Guest
« on: August 17, 2005, 06:35:04 AM »

I use Mac. I want to change directory to a directory called "Application Support". Each time I use the "cd" command it says "no such file or directory". In fact, any directory with 2 names separated by a space will not open. What is the correct command?
Thanks
IP logged
ericg
Guest
« Reply #1 on: August 17, 2005, 02:35:34 PM »

enclose the directory name in quotes :), ie

cd "Im a newbie" make sure space after the "cd" command.

Tip: If yuou start to type a command in, linux will help you find the command if you hit the tab key befor you finish typing...
IP logged
Herschel Hochman
Guest
« Reply #2 on: August 17, 2005, 03:03:45 PM »

Thanks for the help. I use Unix and the tab doesn't seem to work as it does in Linux.
IP logged
ldslourdes
Guest
« Reply #3 on: August 07, 2006, 03:16:05 PM »

i believe you would type the following
cd /firstword \secondword
or
cd /firstword\secondword
IP logged
Rob Pomeroy
Prodigy



Thanked: 119
Posts: 6,454

Experience: Expert
OS: Other


Web/Networking/Linux

Me
« Reply #4 on: August 07, 2006, 03:27:40 PM »

Neither of the above.  The backslash escapes the character that comes after, so it would be cd firstword\ secondword. ;)
IP logged

Author of the fantasy thriller, Insensate - available for all ebook readers and iDevices. Find out more >here<. Only 99p/99¢!
ghostdog74
Mentor



Thanked: 26
Posts: 1,511


« Reply #5 on: August 07, 2006, 08:42:59 PM »

cd "Application Support" should work. but since you said it doesn't

another way is to use wildcards
eg

cd Application*Support

or if one space between names,

cd Application?Support
IP logged

Pages: [1] - (Top) Print 
Home / Software / BSD, Linux, and Unix / How to change directory having 2 words? « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.082 seconds with 20 queries.