mac下终端的一些命令
mac终端命令当前用户切换到root用户
sudo su -

1 GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17) 2 These shell commands are defined internally. Type `help' to see this list. 3 Type `help name' to find out more about the function `name'. 4 Use `info bash' to find out more about the shell in general. 5 Use `man -k' or `info' to find out more about commands not in this list. 6 7 A star (*) next to a name means that the command is disabled. 8 9 JOB_SPEC [&] (( expression )) 10 . filename [arguments] : 11 [ arg... ] [[ expression ]] 12 alias [-p] [name[=value] ... ] bg [job_spec ...] 13 bind [-lpvsPVS] [-m keymap] [-f fi break [n] 14 builtin [shell-builtin [arg ...]] caller [EXPR] 15 case WORD in [PATTERN [| PATTERN]. cd [-L|-P] [dir] 16 command [-pVv] command [arg ...] compgen [-abcdefgjksuv] [-o option 17 complete [-abcdefgjksuv] [-pr] [-o continue [n] 18 declare [-afFirtx] [-p] [name[=val dirs [-clpv] [+N] [-N] 19 disown [-h] [-ar] [jobspec ...] echo [-neE] [arg ...] 20 enable [-pnds] [-a] [-f filename] eval [arg ...] 21 exec [-cl] [-a name] file [redirec exit [n] 22 export [-nf] [name[=value] ...] or false 23 fc [-e ename] [-nlr] [first] [last fg [job_spec] 24 for NAME [in WORDS ... ;] do COMMA for (( exp1; exp2; exp3 )); do COM 25 function NAME { COMMANDS ; } or NA getopts optstring name [arg] 26 hash [-lr] [-p pathname] [-dt] [na help [-s] [pattern ...] 27 history [-c] [-d offset] [n] or hi if COMMANDS; then COMMANDS; [ elif 28 jobs [-lnprs] [jobspec ...] or job kill [-s sigspec | -n signum | -si 29 let arg [arg ...] local name[=value] ... 30 logout popd [+N | -N] [-n] 31 printf [-v var] format [arguments] pushd [dir | +N | -N] [-n] 32 pwd [-LP] read [-ers] [-u fd] [-t timeout] [ 33 readonly [-af] [name[=value] ...] return [n] 34 select NAME [in WORDS ... ;] do CO set [--abefhkmnptuvxBCHP] [-o opti 35 shift [n] shopt [-pqsu] [-o long-option] opt 36 source filename [arguments] suspend [-f] 37 test [expr] time [-p] PIPELINE 38 times trap [-lp] [arg signal_spec ...] 39 true type [-afptP] name [name ...] 40 typeset [-afFirtx] [-p] name[=valu ulimit [-SHacdfilmnpqstuvx] [limit 41 umask [-p] [-S] [mode] unalias [-a] name [name ...] 42 unset [-f] [-v] [name ...] until COMMANDS; do COMMANDS; done 43 variables - Some variable names an wait [n] 44 while COMMANDS; do COMMANDS; done { COMMANDS ; }