Changes

From SME Server
Jump to navigationJump to search
334 bytes added ,  15:22, 20 December 2008
no edit summary
Line 1: Line 1:       −
sort -u /root/.bash_history -o /root/.bash_history
+
== Sort & Remove Duplicates ==
 +
This will sort and remove duplicate commands from your .bash_history file in the /root directory, as well as reducing it file size.
 +
After you execute the command below, you should edit the file and remove any commands or lines that have errors in them so they aren't
 +
executed accidentally.
 +
 
 +
<pre>
 +
sort -u /root/.bash_history -o /root/.bash_history
 +
</pre>
    
==Expand memory of you .bash_history==
 
==Expand memory of you .bash_history==
157

edits

Navigation menu