본문 바로가기
Linux&Ubuntu/서버

[linux]history 날짜 및 시간 추가

by Vittorio_Lee 2021. 10. 25.
728x90
반응형
SMALL

histort 확인 시간없음 
vim /etc/profile

#vim /etc/profile

/etc/profile

#vim /etc/profile 하단에 아래 내용추가
###history 날짜 및 시간 추가
HISTTIMEFORMAT="%F %T -- "
export HISTTIMEFORMAT

or 

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

source /etc/profile

#source /etc/profile 소스로 변경사항 적용

 

histort 확인 날짜 시간 확인

 

728x90
반응형
LIST

'Linux&Ubuntu > 서버' 카테고리의 다른 글

[linux] 파티션 fstab  (0) 2021.10.25
[linux]커널 확인및 부팅가능 커널 출력  (0) 2021.10.25
[linux]root 패스워드 만료일 확인 및 변경  (0) 2021.10.25
[linux]selinux 명령어  (0) 2021.10.24
[linux]시간동기화  (0) 2021.10.24