UNIX/유닉스 공통

리눅스 명령어 위치 확인

99iberty 2013. 4. 17. 14:27

 

http://jmnote.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%EB%AA%85%EB%A0%B9%EC%96%B4_%EC%9C%84%EC%B9%98_%ED%99%95%EC%9D%B8

 

 

리눅스 명령어 설치 위치 확인
리눅스 프로그램 설치 위치 알아내기
리눅스 프로그램 설치 경로 알아보기
which
whereis

목차

[숨기기]

방법 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