Question

How to view the list of commands that I used on a device over a period of time (with date and time stamp)?

Solution: 

Run the HISTTIMEFORMAT bash command to configure the history command with date and time format. This helps in reviewing the commands used on a device over a period of time with date and time stamp.


Example:

bash:~$ HISTTIMEFORMAT="%d/%m/%y %T "
bash:~$ history