"리눅스 설정 수집"의 두 판 사이의 차이

(새 문서: ;리눅스 설정 수집 ==스크립트== <source lang='bash'> </source> ==같이 보기== *윈도우 설정 수집 *sosreport 분류: 윈도우)
 
3번째 줄: 3번째 줄:
==스크립트==
==스크립트==
<source lang='bash'>
<source lang='bash'>
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
</source>
</source>



2012년 8월 24일 (금) 08:52 판

리눅스 설정 수집

1 스크립트

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

2 같이 보기

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