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.

Everything Linux 1800 This topic was started by , . Last reply 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 in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Dec 6
Created
Dec 14
Last Response
0
Likes
1 minute
Read Time
User User User
Users

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