"리눅스 realpath"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
3번째 줄: 3번째 줄:
* 절대경로를 얻는 리눅스 명령어
* 절대경로를 얻는 리눅스 명령어


<source lang='console'>
<syntaxhighlight lang='console'>
root@localhost1:~# realpath /etc/../var/
root@localhost1:~# realpath /etc/../var/
/var
/var
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@localhost1:~# cd /etc/ssh
root@localhost1:~# cd /etc/ssh
root@localhost1:/etc/ssh# realpath ../hosts
root@localhost1:/etc/ssh# realpath ../hosts
/etc/hosts
/etc/hosts
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2021년 7월 18일 (일) 07:00 기준 최신판

1 개요[ | ]

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

2 같이 보기[ | ]

3 참고[ | ]

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