Posts

Showing posts from September, 2015

Writing alias in csh and tcsh - This is for .cshrc

Tutorial from http://home.adelphi.edu/sbloch/class/archive/271/fall2005/notes/aliases.html  Simple aliases The csh and tcsh shells provide an alias command that allows you to make up new commands as abbreviations for longer, more complex commands. For example, alias ll ls -l defines a command named ll which lists files in long form ( i.e. with protections, sizes, modification dates, etc.) You can use it by itself: ll total 20 -rw-r--r-- 1 sbloch users 4583 Oct 13 16:10 hw2.html -rw-r--r-- 1 sbloch users 3273 Oct 13 16:46 hw3.html -rw-r--r-- 1 sbloch users 540 Oct 11 13:49 index.html drwx------ 2 sbloch users 4096 Oct 11 12:01 old or with arguments: ll ~/html/class/271/assignments/h* -rw-r--r-- 1 sbloch users 4583 Oct 13 16:10 /users/staff/math/sbloch/html/class/271/assignments/hw2.html -rw-r--r-- 1 sbloch users 3273 Oct 13 16:46 /users/staff/math/sbloch/html/class/271/assignments/hw3.html Note tha