link to content
Essentials at NC State Home
skip header navigation and go to content Help | ResNet | Computing@NC State | For OIT Staff | Publications | Search NC State | Feedback | Site Map
your unity account
antivirus & security
email & messaging
connections & labs
your computer
software@nc state
files
web pages
education & training
publications
other resources
troubleshooting
ITD Sections

How to load aliases at login

Aliases allow you to assign to long or complex commands "nicknames" or shorter equivalents that are easier to remember and to type. Another section explains the alias command itself in more detail.

To load aliases at startup, use your favorite text editor (such as TED or Pico) to place the alias definition in your ".mycshrc" file, one alias per line. If you do not have a ".mycshrc" file in your home directory, create one. Aliases defined in this file will be loaded for every terminal window (Xterm window) you open. The aliases will be active until you remove them from the file and log in again, or until you use the unalias command.

After you place the alias commands in your ".mycshrc" file, you can use the source command to activate all the commands (aliases included) in the file. Just type

source .mycshrc

Here is a list of some possible aliases you could load automatically using your ".mycshrc" file.

alias nixon 'zwrite rmnix'
alias elvis 'zwrite elvis'
alias xl xloadimage
alias dir 'ls -alFs | more'
alias l 'ls -CF'
alias cfe 'cd /afs/eos.ncsu.edu/info/eos_info/misc_info/config_examples'
alias windowprint 'xwd -frame | xpr -device ps | lpr'
alias zrun '/usr/athena/etc/zwgc'

 

Last modified June 15, 2005 by cawalker

jump back to content/page ends, begin footer
jump to content
jump to content Go to page top Page Top | Site Map | OIT | Policy Disclaimer | Site Survey