The .logout File

If a .logout file exists in your home directory, the shell reads it when you log out. This file can be used to hold commands you want to execute when you're done working — like clear, to clear the screen.

.logout is not processed if you use the login command to log in again, without logging out first.

Get Using csh & tcsh now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.