Line 1:
Line 1:
−
== Sort & Remove Duplicates ==
== 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.
This will sort and remove duplicate commands from your .bash_history file in the /root directory, as well as reducing it file size.
Line 10:
Line 9:
==Expand memory of you .bash_history==
==Expand memory of you .bash_history==
−
Expand the "memory of your .bash_history to 2000 lines adding this on your .bashrc:
+
Expand the memory of your .bash_history to 2000 lines adding this on your .bashrc:
<pre>
<pre>
export HISTFILESIZE=2000
export HISTFILESIZE=2000