Can't find them, there's no .bash_history. Also checked at /var/log/audit and /var/log/secure* Maybe they don't even exist or are disabled.
Thanks!
Can't find them, there's no .bash_history. Also checked at /var/log/audit and /var/log/secure* Maybe they don't even exist or are disabled.
Thanks!
It sounds like the history file for root isn't being set. You can confirm this by running:
echo $HISTFILE
from your root shell. You can set this in the .bashrc in the /root (the home dir for the root user) by placing the line:
HISTFILE="/root/.bash_history"
at the end of your .bashrc file.
Note - The reason your history for the current session is viewable using
history
is because the bash history isn't actually written to the history file that is configured for that user until the user exits their session or it's terminated.