boyfarrell.com

29 November 2005

MacOS UNIX Terminal Commands

This is all | ever seem to use!

cd = change directory
cd ~ = change directory to your home (the tide character always mean home to MacOS)
cd / = change directory to the root
ls = list file in directory
ls -a = list all (even invisible files)
ls -al = as above but with metadata printed too.
mkdir = make a directory
mv = move a file
info nameOfCommand = get info on a command

I did find out a nice little trick recently: tab auto-complete. Say you in your home directory and want to change to your desktop simply type cd D then press tab key and the terminal will complete the string. Of course this only works when there is one option left regarding the information you have typed in – it’s also case sensitive.

No Comments currently posted.

Post a comment on this entry: