似非プログラマーの雑多な日記

似非プログラマーの雑多な日記

「継続は力なり」の実証実験してます

【Bash】組み込みコマンド一覧

Bashの組み込みコマンドを全部試したいもの好き(自分)へ。

環境

組み込みコマンド一覧

# コマンド
1 job_spec [&]
2 (( expression ))
3 . filename [arguments]
4 :
5 [ arg... ]
6 [[ expression ]]
7 alias [-p] [name[=value] ... ]
8 bg [job_spec ...]
9 bind [-lpsvPSVX] [-m keymap] [-f filename] [-q name] [-u name] [-r keyseq] [-x keyseq:shell-command] [keyseq:readline-function または readline-command]
10 break [n]
11 builtin [shell-builtin [arg ...]]
12 caller [expr]
13 case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac
14 cd [-L|[-P [-e]] [-@]] [dir]
15 command [-pVv] command [arg ...]
16 compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [word]
17 complete [-abcdefgjksuv] [-pr] [-DE] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [name ...]
18 compopt [-o|+o option] [-DE] [name ...]
19 continue [n]
20 coproc [NAME] command [redirections]
21 declare [-aAfFgilnrtux] [-p] [name[=value] ...]
22 dirs [-clpv] [+N] [-N]
23 disown [-h] [-ar] [jobspec ... | pid ...]
24 echo [-neE] [arg ...]
25 enable [-a] [-dnps] [-f filename] [name ...]
26 eval [arg ...]
27 exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
28 exit [n]
29 export [-fn] [name[=value] ...] または export -p
30 false
31 fc [-e ename] [-lnr] [first] [last] または fc -s [pat=rep] [command]
32 fg [job_spec]
33 for NAME [in WORDS ... ] ; do COMMANDS; done
34 for (( exp1; exp2; exp3 )); do COMMANDS; done
35 function name { COMMANDS ; } または name () { COMMANDS ; }
36 getopts optstring name [arg]
37 hash [-lr] [-p pathname] [-dt] [name ...]
38 help [-dms] [pattern ...]
39 history [-c] [-d offset] [n] または history -anrw [filename] または history -ps arg [arg...]
40 if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]... [ else COMMANDS; ] fi
41 jobs [-lnprs] [jobspec ...] または jobs -x command [args]
42 kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... または kill -l [sigspec]
43 let 引数 [引数 ...]
44 local [option] name[=value] ...
45 logout [n]
46 mapfile [-d delim] [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
47 popd [-n] [+N | -N]
48 printf [-v var] format [arguments]
49 pushd [-n] [+N | -N | dir]
50 pwd [-LP]
51 read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [-N nchars] [-p prompt] [-t timeout] [-u fd] [name ...]
52 readarray [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
53 readonly [-aAf] [name[=value] ...] または readonly -p
54 return [n]
55 select NAME [in WORDS ... ;] do COMMANDS; done
56 set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
57 shift [n]
58 shopt [-pqsu] [-o] [optname ...]
59 source filename [arguments]
60 suspend [-f]
61 test [expr]
62 time [-p] pipeline
63 times
64 trap [-lp] [[arg] signal_spec ...]
65 true
66 type [-afptP] name [name ...]
67 typeset [-aAfFgilnrtux] [-p] name[=value] ...
68 ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]
69 umask [-p] [-S] [mode]
70 unalias [-a] name [name ...]
71 unset [-f] [-v] [-n] [name ...]
72 until COMMANDS; do COMMANDS; done
73 wait [-n] [id ...]
74 while COMMANDS; do COMMANDS; done
75 { COMMANDS ; }

以上