How to View Bash History Through WHM/cPanel Terminal and Ensure All Commands Are Logged
Hi everyone,
I need help with viewing the bash history when accessing the server through WHM or cPanel's Home / Server Configuration / Terminal. Our server admin uses this terminal, but we can't seem to find all the commands executed from the root in the .bash_history
file.
Could anyone guide me on:
- How to properly view the full bash history through WHM or cPanel's terminal?
- How to ensure that every command run in the terminal is logged to the
.bash_history
file, even if some aren't currently showing?
I would appreciate any advice on how to configure this or if there are specific settings we should check to ensure the history is saved correctly.
Thanks in advance!
Sharif
-
Hey there! it's important to note that the /root/.bash_history file does not get updated in real-time - this means that in order for the file to update, you have to log in and start a new session. This isn't a cPanel issue, but is how most Linux BASH history files are configured as far as I am aware.
For anything else, you can type "history" on the command line to see the full list.
0
Please sign in to leave a comment.
Comments
1 comment