MRKAVANA (mrkavana@gmail.com) - www.facebook.com/kavanathai

Jul 8, 2011

How to 'show date and time' of linux's history command with timestamp

1. Check variable enviroment of each user in : '/etc/passwd' , standard bashshell enviroment: '/home/user:/bin/bash'
2. Add follow parameter in to '/etc/bashrc'

export HISTTIMEFORMAT='%F %T '
HISTSIZE=10000
HISTFILESIZE=10000


when you changed variable enviroment directory, you only add above parameter in to '/etc/profile' 


--> Have fun (only for bashshel, not AIX's ksh) 

No comments:

Post a Comment