Prev: Skype stopped working on three different computers with Debian Lenny
Next: host trying to connect using IPv6 without having IPv6 global address
From: Carlos Williams on 2 Mar 2010 13:10 On Tue, Mar 2, 2010 at 1:00 PM, ludovico van <ludovicovan80(a)gmail.com> wrote: > i have this in $HOME/.bash_logout : > # ~/.bash_logout: executed by bash(1) when login shell exits. > > # when leaving the console clear the screen to increase privacy > > if [ "$SHLVL" = 1 ]; then > Â Â [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q > fi > > however a simple "clear" should be enough > > bye I think having to type 'clear' before log out is crazy. Also if I have 1,000 users, thats a log of files to edit. Is there no global file config that will achieve this? -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/d80f793f1003021004u60cfb5dco87a687b1fb6dd29(a)mail.gmail.com
From: Carlos Williams on 2 Mar 2010 13:20 I found a pretty global / easy resolution. http://www.patoche.org/LTT/screen/00000004.html -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/d80f793f1003021010uf9e611ar1565eab8cfddae1d(a)mail.gmail.com
From: ludovico van on 3 Mar 2010 07:30
On Tue, Mar 2, 2010 at 7:04 PM, Carlos Williams <carloswill(a)gmail.com> wrote: > On Tue, Mar 2, 2010 at 1:00 PM, ludovico van <ludovicovan80(a)gmail.com> wrote: >> i have this in $HOME/.bash_logout : >> # ~/.bash_logout: executed by bash(1) when login shell exits. >> >> # when leaving the console clear the screen to increase privacy >> >> if [ "$SHLVL" = 1 ]; then >> [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q >> fi >> >> however a simple "clear" should be enough >> >> bye > > I think having to type 'clear' before log out is crazy. Also if I have > 1,000 users, thats a log of files to edit. Is there no global file > config that will achieve this? I mean: $ echo "clear" > ~/.bash_logout or just copy the three lines above... If you need it to be valid for all of your users, use the file /etc/bash.logout (or is it /etc/bash.bash_logout ?? see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546200) bye -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/5eb330f91003030427m6945f7f4t819706b67aa3cd9a(a)mail.gmail.com |