Adding a command alias

To make a command alias a permanent part of your working environment:

1. Edit the shell start up file .bashrc and add the line which defines and exports the command alias. For example:

   alias a3print='lp -d any -fa3';export a3print

2. Save the changes and leave the editor.

3. Source the shell startup file to have the changes take immediate effect. For example:

   . .bashrc

[Home] [Search] [Index] This site maintained by webmaster@deslab.mit.edu