"Bash 빌트인 명령어"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 3개는 보이지 않습니다)
6번째 줄: 6번째 줄:
:예외 [[리눅스 echo]] 등
:예외 [[리눅스 echo]] 등


<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# type alias
[root@zetawiki ~]# type alias
alias is a shell builtin
alias is a shell builtin
[root@zetawiki ~]# which alias
[root@zetawiki ~]# which alias
/usr/bin/which: no alias in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/usr/bin/which: no alias in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# type echo
[root@zetawiki ~]# type echo
echo is a shell builtin
echo is a shell builtin
[root@zetawiki ~]# which echo
[root@zetawiki ~]# which echo
/bin/echo
/bin/echo
</source>
</syntaxhighlight>
:→ alias 명령어는 실행파일이 따로 없음<ref>/usr/share/man/man1/alias.1.gz 는 매뉴얼 파일임</ref>. (빌트인 명령어)
:→ alias 명령어는 실행파일이 따로 없음<ref>/usr/share/man/man1/alias.1.gz 는 매뉴얼 파일임</ref>. (빌트인 명령어)
:→ echo 명령어는 실행파일이 있음
:→ echo 명령어는 실행파일이 있음
33번째 줄: 33번째 줄:
* [[complete]]
* [[complete]]
* [[continue]]
* [[continue]]
* [[dirs]]
* [[리눅스 dirs|dirs]]
* [[declare]]
* [[리눅스 declare|declare]]
* [[echo]]
* [[리눅스 echo|echo]]
* [[eval]]
* [[리눅스 eval|eval]]
* [[exec]]
* [[리눅스 exec|exec]]
* [[exit]]
* [[리눅스 exit|exit]]
* [[enable]]
* [[리눅스 enable|enable]]
* [[export]]
* [[리눅스 export|export]]
* [[fc]]
* [[리눅스 fc|fc]]
* [[fg]]
* [[리눅스 fg|fg]]
* [[getopts]]
* [[getopts]]
* [[hash]]
* [[hash]]
58번째 줄: 58번째 줄:
* [[return]]
* [[return]]
* [[readonly]]
* [[readonly]]
* [[set]]
* [[리눅스 set|set]]
* [[shopt]]
* [[리눅스 shopt|shopt]]
* [[source]]
* [[리눅스 source|source]]
* [[suspend]]
* [[리눅스 suspend|suspend]]
* [[type]]
* [[리눅스 type|type]]
* [[리눅스 test|test]]
* [[리눅스 test|test]]
* [[리눅스 trap|trap]]
* [[리눅스 trap|trap]]
* [[리눅스 times|times]]
* [[리눅스 times|times]]
* [[typeset]]
* [[리눅스 typeset|typeset]]
* [[umask]]
* [[리눅스 umask|umask]]
* [[unset]]
* [[리눅스 unset|unset]]
* [[ulimit]]
* [[리눅스 ulimit|ulimit]]
* [[unalias]]
* [[리눅스 unalias|unalias]]
* [[리눅스 wait|wait]]
* [[리눅스 wait|wait]]
}}
}}

2023년 2월 14일 (화) 23:18 기준 최신판

1 개요[ | ]

bash builtin commands; BASH_BUILTINS, builtin shell commands
Bash 빌트인 명령어, Bash 내장 명령어, Bash 빌트인, 배시 빌트인, 배쉬 내장 명령어, 빌트인 쉘 명령어, 내장 쉘 명령어
  • Bash에 내장된 명령어
  • bash 쉘 자체적으로 지원하는 명령어이므로, 실행파일이 따로 없는 경우가 많다.
예외 리눅스 echo
[root@zetawiki ~]# type alias
alias is a shell builtin
[root@zetawiki ~]# which alias
/usr/bin/which: no alias in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@zetawiki ~]# type echo
echo is a shell builtin
[root@zetawiki ~]# which echo
/bin/echo
→ alias 명령어는 실행파일이 따로 없음[1]. (빌트인 명령어)
→ echo 명령어는 실행파일이 있음

2 목록[ | ]

3 같이 보기[ | ]

4 참고[ | ]

  1. /usr/share/man/man1/alias.1.gz 는 매뉴얼 파일임
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}