10번째 줄: | 10번째 줄: | ||
;실행예시 | ;실행예시 | ||
<source lang=' | <source lang='bash'> | ||
[root@ | [root@jmnote ~]# which fsck | ||
/sbin/fsck | |||
[root@jmnote ~]# mv /sbin/fsck /sbin/fsck.do_not_execute_me | |||
mv: cannot stat `/sbin/fsck': No such file or directory | mv: cannot stat `/sbin/fsck': No such file or directory | ||
[root@ | [root@jmnote ~]# which fsck | ||
/usr/bin/which: no fsck in ( | /usr/bin/which: no fsck in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) | ||
</source> | </source> | ||
2012년 8월 20일 (월) 18:58 판
- fsck; filesystem check
- 리눅스 파일시스템 점검 프로그램
VM에서 실행 금지
- VM에서 실행하면 파일시스템이 깨지므로 실행 금지
- 실행 못하도록 미리 막아두자.
bat
Copy
mv /sbin/fsck /sbin/fsck.do_not_execute_me
- 실행예시
Bash
Copy
[root@jmnote ~]# which fsck
/sbin/fsck
[root@jmnote ~]# mv /sbin/fsck /sbin/fsck.do_not_execute_me
mv: cannot stat `/sbin/fsck': No such file or directory
[root@jmnote ~]# which fsck
/usr/bin/which: no fsck in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.