Command | Description | Example |
ps | processor status | ps -ax |grep Applications |
kill | ||
ls | list | ls -Fal |
du | display size of file(s) | du [-s] [file | folder] du -s * .[^.]* |
alias | create a shortcut to a command | alias rm="rm -i" |
ln [-s] source target | link | -s flag == 'symbolic link' and without -s == 'hard link' |
rm | remove an empty folder | rm scripts |
rm -r | remove a folder and files | rm -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\]] '