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

3번째 줄: 3번째 줄:
;/usr/bin/which
;/usr/bin/which
*[[실행파일]]의 위치를 찾는 리눅스 명령어
*[[실행파일]]의 위치를 찾는 리눅스 명령어
*[[alias]]가 있으면 먼저 보여줌


<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# which cat
[root@jmnote ~]# which cat
/bin/cat
/bin/cat
</source>
<source lang='cli'>
[root@jmnote ~]# which ls
alias ls='ls --color=tty'
/bin/ls
</source>
</source>
<source lang='cli'>
<source lang='cli'>

2014년 11월 10일 (월) 02:04 판

1 개요

리눅스 which
/usr/bin/which
  • 실행파일의 위치를 찾는 리눅스 명령어
  • alias가 있으면 먼저 보여줌
[root@jmnote ~]# which cat
/bin/cat
[root@jmnote ~]# which ls
alias ls='ls --color=tty'
	/bin/ls
[root@jmnote ~]# which which
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
	/usr/bin/which

2 같이 보기

3 참고 자료

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