리눅스 type

  다른 뜻에 대해서는 윈도우 TYPE 문서를 참조하십시오.
  다른 뜻에 대해서는 gettype() 문서를 참조하십시오.

1 개요[ | ]

리눅스 type
  • 리눅스 명령어 정보 확인
  • 파일위치, bash 빌트인 명령어 여부, alias 등의 정보를 확인할 수 있음

2 실행예시[ | ]

[root@zetawiki ~]# type bash
bash is /bin/bash
[root@zetawiki ~]# type httpd
httpd is /usr/sbin/httpd
쉘 빌트인
[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
alias
[root@zetawiki ~]# type ls
ls is aliased to `ls --color=auto'
hashed
[root@zetawiki ~]# type man
man is hashed (/usr/bin/man)

3 실행예시 2[ | ]

$ type nvm
nvm is a function
nvm ()
{
    export NVM_DIR="/usr/local/nvm" && source "$NVM_DIR/nvm.sh" && nvm $@
}
$ command -V nvm
nvm is a function
nvm ()
{
    export NVM_DIR="/usr/local/nvm" && source "$NVM_DIR/nvm.sh" && nvm $@
}

4 같이 보기[ | ]

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