- 리눅스 명령어 설치 위치 확인
- 리눅스 프로그램 설치 위치 알아내기
- 리눅스 프로그램 설치 경로 알아보기
1 방법 1: type[ | ]
![](https://z-images.s3.amazonaws.com/thumb/e/ec/Crystal_Clear_app_xmag.svg/24px-Crystal_Clear_app_xmag.svg.png 1.5x, https://z-images.s3.amazonaws.com/thumb/e/ec/Crystal_Clear_app_xmag.svg/32px-Crystal_Clear_app_xmag.svg.png 2x)
Console
Copy
[root@zetawiki ~]# type ifconfig
ifconfig is /sbin/ifconfig
Console
Copy
[root@zetawiki ~]# type cd
cd is a shell builtin
Console
Copy
[root@zetawiki ~]# type which
which is aliased to `alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
2 방법 2: which[ | ]
![](https://z-images.s3.amazonaws.com/thumb/e/ec/Crystal_Clear_app_xmag.svg/24px-Crystal_Clear_app_xmag.svg.png 1.5x, https://z-images.s3.amazonaws.com/thumb/e/ec/Crystal_Clear_app_xmag.svg/32px-Crystal_Clear_app_xmag.svg.png 2x)
Console
Copy
[root@zetawiki ~]# which ifconfig
/sbin/ifconfig
Console
Copy
[root@zetawiki ~]# which httpd
/usr/sbin/httpd
→ ifconfig는 /sbin에, httpd는 /usr/sbin에 설치되어 있다.
3 방법 3: whereis[ | ]
![](https://z-images.s3.amazonaws.com/thumb/e/ec/Crystal_Clear_app_xmag.svg/24px-Crystal_Clear_app_xmag.svg.png 1.5x, https://z-images.s3.amazonaws.com/thumb/e/ec/Crystal_Clear_app_xmag.svg/32px-Crystal_Clear_app_xmag.svg.png 2x)
Console
Copy
[root@zetawiki ~]# whereis ifconfig
ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
Console
Copy
[root@zetawiki ~]# 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
4 방법 4: find[ | ]
![](https://z-images.s3.amazonaws.com/thumb/e/ec/Crystal_Clear_app_xmag.svg/24px-Crystal_Clear_app_xmag.svg.png 1.5x, https://z-images.s3.amazonaws.com/thumb/e/ec/Crystal_Clear_app_xmag.svg/32px-Crystal_Clear_app_xmag.svg.png 2x)
- 실제 명령어가 아닌 다른 파일을 찾게 될 수도 있다.
- 모든 폴더를 다 찾아보기 때문에 위 방법들에 비해 오래 걸린다.
Console
Copy
[root@zetawiki ~]# find / -name ifconfig
/sbin/ifconfig
5 같이 보기[ | ]
6 참고[ | ]
편집자 Jmnote bot Jmnote
로그인하시면 댓글을 쓸 수 있습니다.