Читать книгу Linux Bible - Christopher Negus - Страница 102
NOTE
ОглавлениеSome people disable the history feature for the root user by setting the HISTFILE
shell variable to /dev/null
or simply leaving HISTSIZE
blank. This prevents information about the root user's activities from potentially being exploited. If you are an administrative user with root privileges, you may want to consider emptying your file upon exiting as well for the same reasons. Also, because shell history is stored permanently when the shell exits properly, you can prevent storing a shell's history by killing a shell. For example, to kill a shell with process ID 1234, type kill -9 1234 from any shell.