Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'See hidden directories' contents with Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
See hidden directories' contents with Safari
Authored by: tfdruid on Apr 15, '05 08:01:42PM

>> In particular, I wanted to see the contents of a folder which had spaces in its name. I couldn't figure out how to do this using UNIX in the Terminal, and frankly, was too scared to keep playing there.

To enter file or directory names, simply precede every space with the \ character, for example

cd This\ Directory\ Name\ Has\ Spaces\ In\ It

or quote the whole name, eg

cd "This Directory Name Has Spaces In It"

or enter the first few characters, then hit the <tab> and let bash autocomplete the name for you, eg

cd Thi<tab>



[ Reply to This | # ]
See hidden directories' contents with Safari
Authored by: brew on Apr 19, '05 12:43:41PM

Or, you can just use tab completion - which basically does the work for you. Just type the first few letters of the directory name and whack the tab key - the shell will complete it, and escape the spaces.

You can also use the open command to view files in hidden directories in the finder. For example:

open ~/.ssh



[ Reply to This | # ]