Re: clear screen on logout
Karl Ferguson wrote:
>
> At 09:50 AM 29/04/97 -0700, Ryan Shaw wrote:
> >i've looked through the archives and haven't found an answer as of yet.
> >i'd like the screen cleared on logout and the login prompt to appear at
> >the top. i've worked around this by using an alias in bashrc, but i'm
> >sure there is a better way.
> >
> >any ideas?
>
> Best way (the way I do it) is to do this:
>
> clear > /etc/motd
>
> However, make sure you make a backup copy of your original MOTD so you can
> then edit the file and after all the ascii characters put it back.
>
mgetty, agetty & mingetty use /etc/issue (by default, though this
is of course configurable for mgetty and agetty) rather than motd.
(I wonder what uses /etc/motd?) So, you can run (as root, of course):
clear >> /etc/issue
(no need to save original issue, as ">>" appends to the file rather
than writing over it).
--
Jens B. Jorgensen
jjorgens@bdsinc.com
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: