Changes
Jump to navigation
Jump to search
← Older edit
Clear BASH Shell History
(edit)
Revision as of 11:39, 31 October 2019
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>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version