<tt>.logout</tt>: Leaving UNIX



next up previous contents
Next: .profile: Bourne and Up: Special Files Previous: .login and .cshrc:

.logout: Leaving UNIX

When logging out of a UNIX system, the .logout file is executed. This file is usually very short, and contains commands users want to execute upon leaving UNIX. The most popular is the clear command, which clears the screen.

Another popular command (on Suns) is to invoke fortune, which prints a ``saying" as a goodbye message. This is done by adding the following line after the clear statement:

if (-e /usr/games/fortune) /usr/games/fortune -a



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