CSCI330 Assignment #7 Fall 2001 C Shell Aliases (50 points)You can create a new command by using the C shell alias feature, or by writing a shell script. For this assignment, you will be interpreting commands and then creating C shell aliases.
Part A. INTERPRETING ALIAS/COMMANDS (2 points each; 6 points total)
a1. Enter the following commands:
What does the '2tmp' command do?
What does the 'alias' command do?
What does the 'unalias' command do?
For this part of the assignment, you will create an alias that:
b2. (6 points) Redefine the 'ls' command so that its output is displayed always as 3 columns, in round robin order (sort across row), and all directory names are marked with a slash (/) at the end and executable file names are marked with an asterisk at the end. This alias does not accept any argument. Check the man page on pr
Here is an example of the output of the redefined 'ls' command:
% ls Assignments/ ClassList/ alias re.file* re.file,v* re.file.outb3. (7 points) Create an alias definition called 'rename' to rename a file or a directory. This alias accepts only one argument, which is the name of a file or a directory. Rename the file so that it has an extension that is a contiguous sequence of digits representing the current time consisting of the year (4 digit), day of year, hour, minute, and second of day. See date and strftime(3c) man pages.
b4. (7 points) Create an alias called 'printcsl' to send one or more output file to the CSL lab printer. This alias accepts one or more arguments, which is the file name(s). Use enscript as the print command and use its options to print the file's name and time of printing at the top of each page.
b5. (7 points) Create an alias definition called 'where' to find a file and list the absolute pathname of the file found. Start search from current directory. This alias accepts one argument, which is a file name.
b6. (7 points) Create an alias called 'cd' which will change your directory and change the command prompt to include:
This alias accepts one argument, which is the exact name of the assignment file. For example: assign5.fall01
Here is an example on using the 'mylink' alias.