리눅스 설정 수집

Jmnote (토론 | 기여)님의 2012년 8월 27일 (월) 11:12 판 (→‎스크립트)
리눅스 설정 수집

1 스크립트

cd /root/
TODAY=`date +%Y%m%d`
ps -ef > ps_-ef.$HOSTNAME.$TODAY.txt
netstat -pan > netstat_-pan.$HOSTNAME.$TODAY.txt
grep bash /etc/passwd | cut -f1 -d: > bash_users.$HOSTNAME.$TODAY.txt
ll *.$TODAY.txt

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}