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

 
(사용자 3명의 중간 판 13개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;bash builtin commands; BASH_BUILTINS
;bash builtin commands; BASH_BUILTINS, builtin shell commands
;Bash 빌트인 명령어, Bash 내장 명령어, Bash 빌트인, 배시 빌트인, 배쉬 내장 명령어
;Bash 빌트인 명령어, Bash 내장 명령어, Bash 빌트인, 배시 빌트인, 배쉬 내장 명령어, 빌트인 쉘 명령어, 내장 쉘 명령어
*Bash에 내장된 명령어
*Bash에 내장된 명령어
*bash 쉘 자체적으로 지원하는 명령어이므로, 실행파일이 따로 없는 경우가 많다.
*bash 쉘 자체적으로 지원하는 명령어이므로, 실행파일이 따로 없는 경우가 많다.
:예외 [[리눅스 echo]] 등
:예외 [[리눅스 echo]] 등


<source lang='cli'>
<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='cli'>
<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 명령어는 실행파일이 있음


==목록==
==목록==
{| class='wikitable'
{{z컬럼3|
|-
* [[alias]]
| [[alias]] || [[echo]] || [[kill]] || [[shopt]]
* [[bg]]
|-
* [[bind]]
| [[bg]] || [[enable]] || [[let]] || [[source]]
* [[break]]
|-
* [[builtin]]
| [[bind]] || [[eval]] || [[local]] || [[suspend]]
* [[cd]]
|-
* [[compgen]]
| [[break]] || [[exec]] || [[logout]] || [[test]]
* [[command]]
|-
* [[complete]]
| [[builtin]] || [[exit]] || [[popd]] || [[times]]
* [[continue]]
|-
* [[리눅스 dirs|dirs]]
| [[cd]] || [[export]] || [[printf]] || [[trap]]
* [[리눅스 declare|declare]]
|-
* [[리눅스 echo|echo]]
| [[command]] || [[fc]] || [[pushd]] || [[type]]
* [[리눅스 eval|eval]]
|-
* [[리눅스 exec|exec]]
| [[compgen]] || [[fg]] || [[pwd]] || [[typeset]]
* [[리눅스 exit|exit]]
|-
* [[리눅스 enable|enable]]
| [[complete]] || [[getopts]] || [[read]] || [[ulimit]]
* [[리눅스 export|export]]
|-
* [[리눅스 fc|fc]]
| [[continue]] || [[hash]] || [[readonly]] || [[umask]]
* [[리눅스 fg|fg]]
|-
* [[getopts]]
| [[declare]] || [[help]] || [[return]] || [[unalias]]
* [[hash]]
|-
* [[리눅스 help|help]]
| [[dirs]] || [[history]] || [[set]] || [[unset]]
* [[history]]
|}
* [[kill]]
* [[let]]
* [[local]]
* [[logout]]
* [[pwd]]
* [[popd]]
* [[pushd]]
* [[printf]]
* [[리눅스 read|read]]
* [[return]]
* [[readonly]]
* [[리눅스 set|set]]
* [[리눅스 shopt|shopt]]
* [[리눅스 source|source]]
* [[리눅스 suspend|suspend]]
* [[리눅스 type|type]]
* [[리눅스 test|test]]
* [[리눅스 trap|trap]]
* [[리눅스 times|times]]
* [[리눅스 typeset|typeset]]
* [[리눅스 umask|umask]]
* [[리눅스 unset|unset]]
* [[리눅스 ulimit|ulimit]]
* [[리눅스 unalias|unalias]]
* [[리눅스 wait|wait]]
}}


==같이 보기==
==같이 보기==
54번째 줄: 79번째 줄:
*[[리눅스 help]]
*[[리눅스 help]]
*[[bash]]
*[[bash]]
*[[Bashism]]


==주석==
==참고==
<references/>
* {{영어위키백과|Shell builtin}}


[[분류: Bash 빌트인]]
[[분류: Bash 빌트인]]

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 }}