[GLLUG] aliases
Matt Graham
danceswithcrows@usa.net
Fri, 22 Nov 2002 15:09:22 -0500
On Friday 22 November 2002 08:49, after a long battle with technology,
Melson, Paul wrote:
> Did you check the .bash_profile and .bashrc files in your $HOME
> directory? RedHat creates these each time adduser us run by copying
> the contents of /etc/skel to the new users' home directories.
>
> Your ~/.bashrc file is executed after /etc/profile and /etc/bashrc,
> so it's the best place to define custom aliases. Just start with
> `unalias -a` to clear the existing aliases, and add the ones you
> want.
What usually happens is that .bashrc does:
if [ -e ~/.alias ]; then . ~/.alias ; fi
...which does the obvious. This allows you to stick all your aliases in
one file do you don't have a .bashrc that's bloody huge. Aliases that
I've found useful over time include:
alias ..='cd ..'
alias ...='cd ../..'
# Those are standard on SuSE, can't fathom why they aren't anywhere else
alias ....='cd ../../..'
alias dos2unix='recode ibm-pc..latin1'
alias unix2dos='recode latin1..ibm-pc'
alias pm='ps auxw | more'
--
He is a rhythmic movement of the penguins, is Tux.
--MegaHAL, trained on random gibberish
There is no Darkness in Eternity/But only Light too dim for us to see