August 7th, 2003, 02:57 AM
How do I see the list of already aliased commands?
alias lsl='ls -l'
alias rm = 'rm -r' # (oh ho?)
Now how do I know that such (or other ) aliases exists?
August 7th, 2003, 01:02 PM
Type "alias" without any further parameters
August 7th, 2003, 06:21 PM
Look at your 'profile' file.
In bash check out ~/.bashrc and ~/.bash_profile
In csh I think the file is ~/.profile
Of course ~/ is your home directory.
Two things have come out of Berkeley, Unix and LSD.
It is uncertain which caused the other.
August 7th, 2003, 07:54 PM
Thanks a lot.
BTW, how do I know the aliases that were typed manually from the prompt, other than those from bash scripts files?
August 7th, 2003, 08:02 PM
you can find all of the bash_profile and bashrc aliases with this:
you see? there's a good one liner!
locate bash_profile bashrc | xargs cat | grep alias | grep -v "^#"