eHow launches Android app: Get the best of eHow on the go.

How To

How to Create Aliases in Linux

Member
By Faith Lawless
User-Submitted Article
(0 Ratings)
Create Aliases in Linux
Create Aliases in Linux

If you are used to using DOS in Windows and would like to really get a handle on the differences in using Linux Shell, then you can easily create aliases to do your bidding.

Difficulty: Moderate
Instructions

Things You'll Need:

  • A computer running Linux
  • Knowledge of DOS commands
  • Knowledge of Shell and a list of general commands
  1. Step 1

    Sit down and make a list of DOS commands you want to use in Shell and then list the Shell equivalent.

  2. Step 2

    Boot your computer and open a Shell window.

  3. Step 3

    Type the following command, supplying the appropriate information requested:
    Alias =’’.
    Here is an example of what it should look like: Alias Edit=’vi’.

  4. Step 4

    Next, open your .bashrc file by typing the following: gedit .bashrc. You will need to add any of the aliases you have created, at the bottom of the file, by typing the same line of command as in Step 3.

  5. Step 5

    Make sure you save the information you have added by using the :w command. You will now need to either reboot your system or close and re-open a Shell window in order for the saved aliases to take effect.

Post a Comment

Post a Comment
  • Have you done this? Click here to let us know.
I Did This

Related Ads

Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics