Click to See Complete Forum and Search --> : How do I save an alias?
BigFred
05-03-2000, 01:23 PM
Hi Folks
I have RedHat 6.2 I know how to make an alias like this [alias ls='ls -aFl'] (without the [] of course), but this is only good for the session that I'm logged onto. How can I save this alias so that it is available next time I logon.
Thanks BF
------------------
The answer is 42
Ardith
05-03-2000, 03:53 PM
Put the command in one of your user startup scripts. These are in your /home/[your home] directory. Either .bashrc or .bash_profile I think. Whichever one has your path statement in it. Just stick the command at the bottom and you're all set!
What on earth is that 'the answer is 42'?
BigFred
05-04-2000, 05:17 AM
Hi Ardith
Thanks for that, yes I was only familiar with the C shell, and this is using the bourne shell so I've edited the .bashrc file and all is well.
Thankyou.
Now if you don't know what 42 http://discussions.linuxplanet.com/biggrin.gif refers to you've never read or watched "The hitchikers guide to the galaxy" Where of course:-
------------------
The answer is 42
Ardith
05-04-2000, 03:36 PM
Gotcha.
Zaphod Beeblebrox would sure be proud!
I wonder what distribution 'Deep Thought' used?