From eaab71bb6047d7345a282c9d70510d0b9f47f4df Mon Sep 17 00:00:00 2001 From: rootTHC <57636391+rootTHC@users.noreply.github.com> Date: Sat, 25 Jan 2020 16:31:19 +0000 Subject: [PATCH] Update README.md histfile to dev-null. --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ecb88b1..857682d 100644 --- a/README.md +++ b/README.md @@ -64,12 +64,11 @@ Got tricks? Send them to root@thc.org or submit a pull request. **1.i. Leave Bash without history:** -Tell Bash that there is no history file (*~/.bash_history*). This is the first command we execute on every shell. It will stop the Bash from logging your commands. +Tell Bash to use */dev/null* instead of *~/.bash_history*. This is the first command we execute on every shell. It will stop the Bash from logging your commands. ``` -$ unset HISTFILE +$ export HISTFILE=/dev/null ``` -Note: *export HISTFILE=/dev/null* as root on some (old) Linux systems causes /dev/null to be chmod'ed to 600...causing all kind of problems). It is good housekeeping to 'commit suicide' when exiting a shell: ```