개요
- 리눅스 realpath
- 절대경로를 얻는 리눅스 명령어
root@localhost1:~# realpath /etc/../var/
/var
root@localhost1:~# cd /etc/ssh
root@localhost1:/etc/ssh# realpath ../hosts
/etc/hosts
root@localhost1:~# realpath /etc/../var/
/var
root@localhost1:~# cd /etc/ssh
root@localhost1:/etc/ssh# realpath ../hosts
/etc/hosts