-->
UNIX - Aliases

UNIX - Aliases

  1. To create an alias in UNIX you need to be logged into a UNIX machine.
    If you need help logging into UNIX here are some helpfiles.


  2. Once you login into UNIX make sure you have your .cshrc file, you can see it by typing in ls –a.
    This .cshrc file is where you put your aliases. (As Shown below Figure 1)

    fig01
    Figure 01

  3. At the command prompt type pico .cshrc , which will open up an editor, where you’ll be able to create your aliases.
    The following is the way you can type in your commands: (Shown Below In Figure 2)

    # this is how you write your comments
    # to create your aliases type in: alias variablename ‘command to be performed’
    alias c ‘clear’
    alias zq‘zquota’

    fig02
    Figure 02

  4. Once you are done adding/modifying/deleting your aliases you press CTRL+x, press y and press enter.

  5. You should be on your command prompt, now type in source .cshrc for your changes to take place.

  6. Now all you have to do in your UNIX account is to type in your variablename instead of the actual command and it should perform the assigned command.

To Top of Page To Top Of Page Printer Friendly Version

©CSG Helpdesk

Valid CSS!