bash
This is a discussion about bash in the Everything Linux category; i'm sorry if i'm iritating you with all those questions. . . . but. . . . . . i need help thanks egorgry for your help one more when using a terminal. . . suppose i run a program (say. /P ) 10 times.
i'm sorry if i'm iritating you with all those questions ....but......i need help
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
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
Participate in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Dec 6
Dec 14
0
1 minute
Responses to this topic
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
you can addd this line to your .bashrc file to ignore dups
# don't put duplicate lines in the history.
export HISTCONTROL=ignoredups
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