History record time and user in production
Edit / etc/profile
Vim / etc/profileexport HISTTIMEFORMAT= "% F% T `whoami`" Save exit source / etc/profile
Test:
Typing the history command will display something like the following:
(when, which user, which commands were operated)
2017-02-12 00:08:39 rootcd
2017-02-12 00:08:42 roothistory