Check command history by date/time

hr-ethadmin
Site Admin
Posts: 67
Joined: Fri May 31, 2013 1:04 pm

Check command history by date/time

Postby hr-ethadmin » Thu Nov 28, 2013 10:50 am

If you want to check history of the command by date and time, you need to set following export path on the server

root@root[~]# export HISTTIMEFORMAT='%F %T '

then you will get the output of history command like given below:

root@root[~]#history | more
1 2013-11-28 05:55:18 su -
2 2013-11-28 05:55:18 w
3 2013-11-28 05:55:18 last
4 2013-11-28 05:55:18 cd /var/log/
5 2013-11-28 05:55:18 ll
6 2013-11-28 05:55:18 tail -f messages

Return to “Hostripples dedicated Servers (Linux/Windows)”

Who is online

Users browsing this forum: No registered users and 3 guests