1 개요[ | ]
- 리눅스 type
- 리눅스 명령어 정보 확인
- 파일위치, bash 빌트인 명령어 여부, alias 등의 정보를 확인할 수 있음
2 실행예시[ | ]
Console
Copy
[root@zetawiki ~]# type bash
bash is /bin/bash
Console
Copy
[root@zetawiki ~]# type httpd
httpd is /usr/sbin/httpd
Console
Copy
[root@zetawiki ~]# type type
type is a shell builtin
[root@zetawiki ~]# type test
test is a shell builtin
[root@zetawiki ~]# type -a test
test is a shell builtin
test is /usr/bin/test
Console
Copy
[root@zetawiki ~]# type ls
ls is aliased to `ls --color=auto'
- hashed
Console
Copy
[root@zetawiki ~]# type man
man is hashed (/usr/bin/man)
3 실행예시 2[ | ]
Console
Copy
$ type nvm
nvm is a function
nvm ()
{
export NVM_DIR="/usr/local/nvm" && source "$NVM_DIR/nvm.sh" && nvm $@
}
Console
Copy
$ command -V nvm
nvm is a function
nvm ()
{
export NVM_DIR="/usr/local/nvm" && source "$NVM_DIR/nvm.sh" && nvm $@
}
4 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.