Linux & Ubuntu/Linux System

history 시간 출력 방법

KanoKim 2019. 5. 1. 14:52


history 시간 출력 방법



+. 설정

[root@localhost ~]# cat /etc/profile | grep HISTTIM

HISTTIMEFORMAT="[%Y-%m-%d_%H:%M:%S] "


+. 적용

[root@localhost ~]# source /etc/profile



+. 적용 확인

[root@localhost ~]# history

....

 3976  [2019-04-22_13:52:43] source /etc/profile