'root' user history size and logrotate?

chudak

Well-Known Member
May 11, 2019
327
18
58
Hello

I accidentally lost my history and want to setup bigger buffer size and also logrotate.

I use root on pve node and don't see where

-- HISTSIZE is set

and also where am equivalent of

/home/<USER>/.bash_history file is located.

Any clues appreciated !
 
-- HISTSIZE is set
nowhere, but each shell has a default value (i guess bash has 50000 or something)
just export your desired value e.g. in .bashrc in the home directory

and also where am equivalent of

/home/<USER>/.bash_history file is located.
the homedir of the root user is '/root/' so the bash_history is in

/root/.bash_history
 
  • Like
Reactions: chudak