"The C Shell" Exercises
1. Change your prompt variable to "yes, master: ". 2. What are the values of your TERM and HOME environment variables? 4. Hit the CTRL-D key combination. Note what happens. If the ignoreeof variable was not set, you should have been logged off of the computer system. Now set the ignoreeof variable (enable it). Then hit the CTRL-D key combination. What happens this time? 5. Create an alias named dir that you can use that stands for the following pipeline command: ls -aF | more Create an alias named where that stands for pwd. Create an alias named del that stands for "rm -i". How is this syntax different than the Korn shell alias syntax? 6. What is the value of your history variable? Enter the following commands: cd ls ls -al ps -ef who Use the history command to list your previous commands. (What command did you use to list your previous commands with the Korn shell?) Use the ! command to repeat your most recent ls command, referring to the ls command by number. Use the ! command to repeat your most recent ps command, referring to the ps command by name instead of number. Note that the output scrolls off of the screen. Repeat the ps command by using the ! command, but pipe its output into the more command so you can read it one page at a time. (i.e., you want to create the command "ps -ef | more", but use the ! command to recall the "ps -ef" portion, and then add the " | more" portion.
Next: File Management Up: The C Shell Previous: Summary   Contents |