Word to the wise, do not toy with /etc/profile.d/. Just leave those alone, and as I've detailed in the past, create your own ~/.aliases for your user. (Check the archives. This has been covered before.)
The best place to add your aliases is in ~/.aliases. Yes, you can put them in ~/.bashrc and ~/.bash_profile, but it's best to keep those files small, and a typo is more friendly in ~/.aliases then it would be in ~/.bashrc etc; So set up your ~/.aliases by using your favorite text editor. Here's the format: alias <alias_name>="<command_to_alias> Here's an example: alias mp='mplayer -vo x11' To get rid of an alias, use the unalias command. It's built into the shell. $ type unalias unalias is a shell builtin So after you've created all your aliases in ~/.aliases, end the file with your Unaliases #################### Unalias #################### unalias md unalias d Follow that format. It will prevent problems in the future, and you're not affecting other users that might want those default aliases. alias rm="rm -i" is a good example. After you've created/edited your ~/.aliases, at the end of your ~/.bashrc add this line: source ~/.aliases This will set up aliases for each time you open a new terminal. Source your ~/.bashrc and it will re-read your environment files. tdh -- -------------------------------------------------------------------- T. Holmes | UNIXTECHS.org | [EMAIL PROTECTED] | UIN: 17021091 -------------------------------------------------------------------- | Hi, | When I types aliases on Mandrake 8.2 I get list of aliases. Say if I want | to remove a few of them, whichfile should I edit? | Thanks and bye. | -Payal | | | Want to buy your Pack or Services from MandrakeSoft? | Go to http://www.mandrakestore.com `-------------------------------------------------------------------
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
