( 아래 작업은 Centos7에서 진행되었으나, 모든 Linux에서 동일하게 적용됩니다. )

 

 

 

1. [%Y-%m-%d_%H:%M:%S]  포맷으로 histtory 앞에 함께 출력되도록 설정값 추가

 

$ echo 'HISTTIMEFORMAT="[%Y-%m-%d_%H:%M:%S]  "' >> /etc/profile

 

 

 

2. 설정값 적용

 

$ source /etc/profile

 

 

 

 

 

+ Recent posts