Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.bash_history
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Linubie
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 256

PostPosted: Wed Jan 28, 2015 10:01 am    Post subject: .bash_history Reply with quote

Hallo,

heute beim Starten von Gentoo wurde meine .bash_history unter root gelöscht bzw. auf null Einträge gesetzt.
Leider habe ich nach kurzer Suche keine Möglichkeit gefunden wo ich das einstellen kann.
Hat jemand eine Idee wo das festgelegt wird?

Danke
_________________
Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something...
Back to top
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1938

PostPosted: Wed Jan 28, 2015 10:33 am    Post subject: Reply with quote

Siehe: https://www.gnu.org/software/bash/manual/html_node/Bash-History-Facilities.html
_________________
Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong."
Back to top
View user's profile Send private message
gendjaral
n00b
n00b


Joined: 11 Aug 2012
Posts: 43
Location: DE Munich

PostPosted: Wed Jan 28, 2015 10:42 am    Post subject: Reply with quote

Richtig. Das war auch mein erster Gedanke.
Linubie, siehe dir einmal den Wert der Variablen an:
Code:

echo $HISTSIZE
echo $HISTFILESIZE

_________________
Regards, gendjaral
Back to top
View user's profile Send private message
Linubie
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 256

PostPosted: Wed Jan 28, 2015 9:56 pm    Post subject: Reply with quote

Hi,

danke für den Tipp, beide geben mir den Wert 500 aus und das scheint default zu sein.
Wenn ich die Werte höher setzen möchte, solle ich die beiden Variablen in der /etc/bash/bashrc setzen oder in der /etc/profile?
_________________
Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum