Currently on my laptop when I log out I can still see traces of my last activities (in tty). How can I tell it (Gentoo) to clear the screen before logging out?
|
If your shell is bash, add
As the system administrator, you can configure the console to always be cleared before showing the login prompt. The easiest way to do that is to use
The Upstart equivalent would to change |
|||||
|
|
If you don't have .profile
.exitrc
In my case, .bash_profile
.zlogin
|
|||
|
|
|
If you don't want to edit anything and you don't need to clear the screen every time, pressing ctrl+c works for clearing the screen back to a login prompt. |
|||
|
|
