리눅스 readlink

1 개요[ | ]

리눅스 readlink
/bin/readlink
root@zetawiki:~# ll /usr/bin/cc
lrwxrwxrwx 1 root root 20 May 21  2015 /usr/bin/cc -> /etc/alternatives/cc*
root@zetawiki:~# readlink /usr/bin/cc
/etc/alternatives/cc
root@zetawiki:~# ll /etc/alternatives/cc
lrwxrwxrwx 1 root root 12 May 21  2015 /etc/alternatives/cc -> /usr/bin/gcc*
root@zetawiki:~# readlink /etc/alternatives/cc
/usr/bin/gcc
root@zetawiki:~# readlink /usr/bin/gcc
gcc-4.8
root@zetawiki:~# readlink -f /usr/bin/cc
/usr/bin/gcc-4.8

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}