bash

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.

Everything Linux 1798 This topic was started by ,


data/avatar/default/avatar30.webp

32 Posts
Location -
Joined 2004-10-13
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

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar03.webp

305 Posts
Location -
Joined 2003-08-30
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
 
 

data/avatar/default/avatar13.webp

193 Posts
Location -
Joined 2000-05-25
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