This is a neat little utility on the bash shell. Aliases allow a string to be substituted for a word when it is used as the first word of a simple command.
#alias# alias today='date +"%A, %B %-d, %Y"' #Tuesday, October 18, 2011
And how do you undo this alias? Simple.
unalias today
Now typing today on the terminal returns “Tuesday, October 18, 2011”. These are some neat little tricks I think are required on any linux box.
Use alias to fix missing space typos.
alias cd..='cd ..' alias ..='cd ..'
Display the working directory.
alias .='echo $PWD'
Prevent accidental deletions by making rm interactive.
alias rm='rm -i'
I hope this will get you started! š