cd Terminal Command

Joined
Nov 5, 2007
Messages
52
Reaction score
0
Points
6
Location
Chicago
Your Mac's Specs
15" 2.2 GHz Intel Core 2 Duo MBP w/4GB of Ram
So i'm trying to use terminal to browse the directory structure. I cd to the root and then drill down to /library. Once there, I try to cd Application Support and it tells me no such file of directory???? ***????

What am I missing here?
 
Joined
Mar 30, 2004
Messages
4,744
Reaction score
381
Points
83
Location
USA
Your Mac's Specs
12" Apple PowerBook G4 (1.5GHz)
Try putting "Application Support" in quotes. Spaces in file/folder names have to be quoted or escaped on the command line.
 
Joined
Mar 9, 2004
Messages
9,065
Reaction score
331
Points
83
Location
Munich
Your Mac's Specs
Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2
You're missing the space:
You need to type "cd Application\ Support" to get to the folder "Application Support". The terminal doesn't support spaces, unless you escape them as technologist pointed out.

An easier way of doing things is to use the autocomplete feature:
Type "cd Ap" and then press the tab key. The Terminal will look at the list of folders and try to guess which one you're going to type. As long as there aren't any other folders that start with the letters "Ap", it will autocomplete the folder name "Application\ Support" for you.
 
OP
Mac_Daddy
Joined
Nov 5, 2007
Messages
52
Reaction score
0
Points
6
Location
Chicago
Your Mac's Specs
15" 2.2 GHz Intel Core 2 Duo MBP w/4GB of Ram
Awesome- thx guys!
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
Another way is to do the following:

cd Application?Support
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top