Unix contains an
alias
command that allows you to (re)name unix commands to better suit your
needs.
It is common to put alias commands in your
.cshrc
file since this file is run automatically each time you enter a new
unix shell.
For example, since I use the more command very often, I have renamed
it to m by putting the following line in my .cshrc file:
alias m more
Reading: D&D, pp. 182-217 (most assigned before)
Exercises: pp. 241-243, #3.11, #3.19 (Reminder: the length of the hypotenuse of a right triangle is the square root of the sum of the squares of the other two sides. Make sure you write the function, and a main program which calls the function so that you can show the function works.)
5.1 Math Library Functions -- function calls, header files, and linking in standard libraries.5.2 User Defined functions -- function prototypes, function definitions, calling user defined functions. A first example: computing the maximum of two ints and using the function in a program to read three numbers and to print the largest. See the file: $CLASSHOME/examples/3max.cc