'root' user history size and logrotate?

chudak

Well-Known Member
May 11, 2019
322
16
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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!