I know there is the $HISTFILE variable where i can find the currently logged in users history-file, but how can i be sure to get every history file on the server
I was thinking of the following:
sudo find /home/ -name '*_history*'
With output:
root@anders:~# sudo find /home/ -name '*_history*'
/home/seb/.bash_history
/home/adionditsak/.bash_history
/home/jakob/.bash_history
...
Would this do the trick - or do you have a better way?
$HISTFILE
in my session to~/whateveh.out
, then how will yourfind
find it?