리눅스 which, whereis, locate - 명령어의 경로 확인
각종 파일과 디렉토리등의 경로 확인에 자주 사용되는 명령어를 살펴봅니다.
which
which는 특정명령어의 위치를 찾아주는 명령어이다.
which find
/bin/find
검색 가능한 모든 경로에서 해당 명령어를 찾음
which -a find
/bin/find
/usr/bin/find
where
whereis는 명령어의 실행파일위치, 소스위치, man 페이지파일의 위치를 찾아주는 명령어이다.
whereis find
..