[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash-history automatisch löschen



Am 2008-09-18 23:51:08, schrieb Reinhold Plew:
> 'history -c' sollte zumindest die History löschen.
> Brauchst Du nur noch einen Skript, der das dann für den aktuellen User
> beim Shutdown ausführt.
> Allerdings wird der aktuelle User nicht die History von root löschen
> können, ausser, er ist root.
> 
> Warum nicht einfach beim LogOut löschen?
> Einfach eine .bash_logout anlegen, wo der Befehl drin steht.

Weil die History nach LOGOUT geschrieben wird?

Wenn  Die  History  nicht  benötigt  wird,  würde  ich  sie  vollständig
deaktivieren.  Siehe "man 1 bash"

    export HISTFILE=''

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: