unix and linux

[centos 7] realpath 명령어

'김용환' 2016. 5. 3. 21:09



realpath 명령어는 centos7부터 내장된 명령어로서 파일의 절대 위치를 알려준다. 

특히 심볼링 링크가 가르키는 디렉토리를 보고 싶을 때 확인할 수 있다. 



centos 7부터 /bin 디렉토리가 /usr/bin/으로 이동했다.


$ ls -l /bin

lrwxrwxrwx. 1 root root 7  7월 28  2015 /bin -> usr/bin



$ realpath /bin

/usr/bin