Clear BASH Shell History

From RHS Wiki
Revision as of 10:56, 31 October 2019 by Rafahsolis (talk | contribs) (Created page with "<syntaxhighlight lang="bash"> history -w history -c </syntaxhighlight>To avoid storing a command in your history you can also place a space before the command Over ssh you ca...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
history -w
history -c

To avoid storing a command in your history you can also place a space before the command Over ssh you can exit with the command:

kill -9 $$