리눅스 기초 다지기 - 10. history 시간 설정

 

history 명령어 출력 시 시간 설정 방법

 

 

 

vi /etc/profile

# 아래 내용 추가
HISTTIMEFORMAT="%F %T -- "

 

설정 적용

source /etc/profile

 

시간 적용 확인

history
1013  2023-11-10 16:42:18 -- source /etc/profile