Changes

Jump to navigation Jump to search
65 bytes added ,  11:39, 31 October 2019
m
no edit summary
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>To avoid storing a command in your history you can also place a space before the command
+
</syntaxhighlight>
   −
Over ssh you can exit with the command:<syntaxhighlight lang="bash">
+
=== Avoid storing one command in history ===
 +
Place a space before the command
 +
<br />
 +
 
 +
=== Over SSH: ===
 +
<syntaxhighlight lang="bash">
 
kill -9 $$
 
kill -9 $$
 
</syntaxhighlight>
 
</syntaxhighlight>

Navigation menu