From 9cc107138dfb5073bcbe2aab058c3897be22d4c8 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Tue, 15 Mar 2016 19:12:27 +0100 Subject: [PATCH] add explanation how to fully erase bash shell history based on http://unix.stackexchange.com/questions/203290/how-do-i-clear-the-terminal-history/203295#203295 --- pages/common/history.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/history.md b/pages/common/history.md index 60c9f0430e..bc4389912b 100644 --- a/pages/common/history.md +++ b/pages/common/history.md @@ -6,6 +6,10 @@ `history` -- Clear the commands history list (only for `bash`): +- Clear the commands history list (only for current `bash` shell): `history -c` + +- Overwrite history file with history of current `bash` shell (typically combined with `history -c` to completely erase history): + +`history -w`