Jump to content
Compatible Support Forums
Sign in to follow this  
kobedf

bash

Recommended Posts

i'm sorry if i'm iritating you with all those questions ....but......i need help laugh

thanks egorgry for your help

 

one more

when using a terminal ...suppose i run a program (say ./P ) 10 times...than when i try to get through the list of the recently used commands with the UP and DOWN arrows i find ./P placed there 10 times.

I'll try to change this myself , but i need to know what file i should modify ...or how can i access the shell buffers.

thanks

Share this post


Link to post

teh commands are kept in your .bash_history file.

 

you can addd this line to your .bashrc file to ignore dups

 

# don't put duplicate lines in the history.

export HISTCONTROL=ignoredups

 

 

Share this post


Link to post

Another way is just edit your bash profile and set the buffer to 1000 lines for example, then tell it to load your profile by default smile

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×