Friendly Tutorials

 
Home
How to avoid duplicates in Linux history ? PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Administrator   
Sunday, 22 August 2010

How do you avoid linux history duplicates commands ? This means that we need history just to save unique commands used once.

 

In the user's  .bashrc file , just add the following entry

HISTCONTROL=ignoreboth

You can also make this using the command line

linux01# export HISTCONTROL=ignoreboth

 
< Prev   Next >
Advertisement

Polls

Was the site interface friendly enough ?
 

Login Form






Lost Password?
No account yet? Register

Who's Online

We have 7 guests online

[+]
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • default color
  • blue color
  • green color