1/07/2015

리눅스 history 명령 날짜 및 시간 표시하기(view date and time in history command)

# vim /etc/profile

아래와 같이 profile 파일 내 포맷 history format 삽입

HISTTIMEFORMAT="[%F %T]  "
export HISTTIMEFORMAT

# source /etc/profile
설정파일 적용

history 확인 시 시간 보임

output
  504  [2015-01-07 15:17:58]  ls
  505  [2015-01-07 15:18:07]  source /etc/profile
  506  [2015-01-07 15:18:10]  history




HAHWUL

Security engineer, Gopher and H4cker!

Share: | Coffee Me:

0 개의 댓글:

Post a Comment