Saturday, August 16, 2008

My Mac

CommandDescriptionExample
psprocessor statusps -ax |grep Applications
kill
lslistls -Fal
dudisplay size of file(s) du [-s] [file | folder]
du -s * .[^.]*
aliascreate a shortcut to a commandalias rm="rm -i"
ln [-s] source targetlink -s flag == 'symbolic link' and without -s == 'hard link'
rm remove an empty folderrm scripts
rm -rremove a folder and filesrm -r scripts

export EDITOR='mate -w'
export PATH=$PATH:/opt/local/bin:~/bin
export GEM_HOME=/usr/lib/ruby/gems
export PS1='[\[\e[1;32m\]greg:\W\[\e[0m\]] '