Exercises
Next: Compilers
Up: Special Files
Previous: calendar
- When logging into your system, you want a greeting message.
How would you do it
- 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
.
- 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.
- Add an alias to your .cshrc file that would interpret
the lls command as ls -l.
- Add an alias to your .cshrc file that would interpret
hl as going to your home directory, and performing
a listing.
- Increase your history to 100 items, but save only the last 50 when
you log out.
- 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).
- 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