Analyze. Act. Achieve.
Kurinchilion KURINCHILION Analyze. Act. Achieve.

News

How to display the history of commands executed by the user?

Linux: History command

Each bash sessions stores the history of commands executed in .bash_history file which in turn in stored under each user's home directory

usr100@dev01:/tmp/user$ ls 07-14.txt a.txt b.txt d.txt

usr100@dev01:/tmp/user$ cat ~/.bash_history clear su root rm -i d.txt ls -ltr touch c.txt