Exercises



next up previous contents
Next: Compilers Up: Special Files Previous: calendar

Exercises

  1. When logging into your system, you want a greeting message. How would you do it
  2. Change your system prompt to say the history number, followed by your name, followed by a comma, followed by the directory you are currently using, followed by a question mark. It should look similar to 25 cantin, /home/nrccsb2/cantin .
  3. In your .login file, write code that would display how many users are logged onto the system, who they are, and when they logged on.
  4. Add an alias to your .cshrc file that would interpret the lls command as ls -l.
  5. Add an alias to your .cshrc file that would interpret hl as going to your home directory, and performing a listing.
  6. Increase your history to 100 items, but save only the last 50 when you log out.
  7. Upon logging out of UNIX, you want a message to be sent to a file called .logout.time in your home directory. That logout message should be similar to cantin logged out on Wed Aug 22 at 17:22 1990. (NOTE: the seconds and the timezone are NOT included).

  8. Set up a file called calendar in your home directory with fake appointements you could have. Set it up so that it gets executed every time you log into your system.


Super-User
Fri Feb 17 15:55:40 EST 1995