To prevent saving session-history to .bash_history: $  ps   PID TTY          TIME …

Comment on How to make sure your Linux system users won’t hide or delete their .bash_history / Securing .bash_history file by Milo.

To prevent saving session-history to .bash_history:
$  ps
  PID TTY          TIME CMD
13803 pts/4    00:00:00 bash
15368 pts/4    00:00:00 ps

$  kill -9 13803
Kill the login-shell process instead of logging out the normal way.

Share this on

No Responses to “To prevent saving session-history to .bash_history: $  ps   PID TTY          TIME …”

  1. Mr WordPress says:
    Unknown Unknown Unknown Unknown

    Hi, this is a comment.
    To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.

    View CommentView Comment