Difference between revisions of "Clear BASH Shell History"
Jump to navigation
Jump to search
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...") Tag: visualeditor |
Rafahsolis (talk | contribs) m Tag: visualeditor |
||
| Line 1: | Line 1: | ||
| + | === Delete one line from history === | ||
| + | <code>history -d 251</code> | ||
| + | |||
| + | === Clear History === | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
history -w | history -w | ||
history -c | history -c | ||
| − | </syntaxhighlight> | + | </syntaxhighlight> |
| − | + | === Avoid storing one command in history === | |
| + | Place a space before the command | ||
| + | <br /> | ||
| + | |||
| + | === Over SSH: === | ||
| + | <syntaxhighlight lang="bash"> | ||
kill -9 $$ | kill -9 $$ | ||
</syntaxhighlight> | </syntaxhighlight> | ||