Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GigaWire

macrumors 6502
Original poster
Dec 25, 2001
386
0
Well not really that, but how do you open a directory in terminal that has a space in it. for example Desktop DB?

% cd Desktop DB
cd: Too many arguments.
%


Thanks
 
or cd Desktop?DB
or cd Desktop*
...

There is almost always more then one way to do things with Unix; that's part of the power.
 
Re: How to browse directories in UNIX

Originally posted by GigaWire
Well not really that, but how do you open a directory in terminal that has a space in it. for example Desktop DB?

% cd Desktop DB
cd: Too many arguments.
%


Thanks

You could also type...

cd Des{tab}

Tab will complete the name... (or attempt to atleast)
 
The reason you got the error for too many arguments is that UNIX will not take spaces in a file name unless preceded by a backslash since the space is used as the seperator between arguments for a command.

Simple Version: No can do spaces, put a backslash in front of any spaces or use tab to make life easier. (Auto-Complete)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.