clear old output in login screen?

Polytropon freebsd at
Sun May 3 22:18:30 UTC 2009

On Sun, 3 May 2009 11:46:30 -0700, jw <jwdevel at> wrote:
> How do I get it to clear the screen (and the scroll buffer) when the
> login prompt gets redisplayed?

Two options:

a) Clear everything right after login. Put the command "clear"
   in your ~/.login, or /etc/csh.login for all users.

b) Clear everything right after logout, so the new login will
   get a blank screen. Put the command "clear" in your ~/.logout,
   or /etc/csh.logout for all users.

This assumes that you have the standard dialog shell csh. If
you're using bash, you need to modify its respective files,
~/.profile or ~/.bashrc - I don't know, I'm using csh. :-)

>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list