2012년 04월 04일
Linux 명령어 실행 시간보기(history HISTTIMEFORMAT)
from 15 Examples To Master Linux Command Line History
# export HISTTIMEFORMAT='%F %T '
# history | more
1 2008-08-05 19:02:39 service network restart
2 2008-08-05 19:02:39 exit
3 2008-08-05 19:02:39 id
4 2008-08-05 19:02:39 cat /etc/redhat-release
Linux 명령어 실행 시간보기(history HISTTIMEFORMAT)
Linux Bash 명령어 실행 시간보기 설정
# export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S '
# history
328 2012-03-11 07:45:48 vi /etc/profile
329 2012-03-11 07:45:55 source /etc/profile
330 2012-03-11 07:45:57 history
Linux 명령어 실행 시간보기 해제
# unset HISTTIMEFORMAT
# history
66 exit
67 ls
68 history
Linux 명령어 실행 시간보기 profile에 설정
# vi /etc/profile
### history
HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S '
export HISTTIMEFORMAT
# source /etc/profile
# by | 2012/04/04 19:45 | 이동통신 자료 | 트랙백 | 덧글(0)



