목차[숨기기] |
방법 1: which
- 명령어
which 명령어
- 실행 예시
[root@jmnote ~]# which ifconfig
/sbin/ifconfig
[root@jmnote ~]# which httpd
/usr/sbin/httpd
→ ifconfig는 /sbin에, httpd는 /usr/sbin에 설치되어 있다.
방법 2: whereis
- 명령어
whereis 명령어
- 실행예시
[root@jmnote ~]# whereis ifconfig
ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
[root@jmnote ~]# whereis httpd
httpd: /usr/sbin/httpd /usr/sbin/httpd.worker /usr/sbin/httpd.event /etc/httpd /usr/lib64/httpd /usr/include/httpd /usr/share/man/man1/httpd.1.gz /usr/share/man/man8/httpd.8.gz
방법 3: find
- 리눅스 파일 찾기 문서를 참고하십시오.
모든 폴더를 다 찾아보기 때문에 위 방법들에 비해 오래 걸린다.
- 명령어
find / -name 명령어
- 실행예시
[root@jmnote ~]# find / -name ifconfig
/sbin/ifconfig
같이 보기
참고 자료
'UNIX > 유닉스 공통' 카테고리의 다른 글
사용자 보안 - PAM (0) | 2013.07.18 |
---|---|
SCSI 정보를 알아보자 (0) | 2013.07.15 |
열린 포트 확인 (명령어만) (0) | 2013.04.15 |
서비스 포트 확인명령 (# netstat -nlpt) (0) | 2013.04.15 |
LVM 상세내용 - 복구방법 (0) | 2012.07.26 |