Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- stressapptest
- 애월맛집
- 살롱드라방
- bwm
- 표준 입력
- iftop
- 사랑담은해물
- 표준 에러
- bwm-ng
- vnstat
- ipmitool
- OS TEST
- 몽상드애월
- Shell Script
- 제주도맛집
- sysstat
- bash
- history 로그 남기기
- 사랑담은 해물
- 제주도
- memtester
- ipmiutil
- iperf
- 복도새기
- 표준 출력
- 숙이네보리빵
- GCOV
- Linux
- ipmi
- 제주맛집
Archives
- Today
- Total
목록history 로그 남기기 (1)
이런 세상..
[LINUX] history 내역을 실시간으로 rsyslog 로 남기기
[LINUX] history 내역을 실시간으로 rsyslog 로 남기기 [1] /etc/bashrc 파일에 다음 추가#vi /etc/bashrcexport PROMPT_COMMAND='RETRN_VAL=$?;logger -p local6.debug "[$(whoami)][$PWD][$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"' [2] /etc/rsyslog.conf 설정에 다음 추가# vi /etc/rsyslog.conflocal6.* /var/log/history.log # service rsyslog restart [3] 실행 (터미널 종료 후 재접속)# cat /var/log/history.logJan 15 16:48:48 QM-OS..
> [IT]/>> Linux
2016. 1. 15. 16:48