Skip to content

Shell Built in commands

Koichi Nakashima edited this page May 15, 2020 · 7 revisions

List

  • This is not complete list.
  • It may not be implemented in older versions.
  • It may be implemented in newer versions.
  • The options implemented may be different.
  • Commands in bold are implemented in all shells.
  • zsh has many builtin command begin with "comp" and "z".
dash bash zsh ksh mksh posh yash busybox bosh pbosh
. ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
: ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
[ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
alias ✔️ ✔️ ✔️ ✔️ ✔️ - ✔️ ✔️ ✔️ ✔️
array - - - - - - ✔️ - - -
autoload - - ✔️ - - - - - - -
bg ✔️ ✔️ ✔️ ✔️ ✔️ - ✔️ ✔️ ✔️ ✔️
bind - ✔️ - - ✔️ - - - - -
bindkey - - ✔️ - - - ✔️ - - -
break ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
builtin - ✔️ ✔️ ✔️ ✔️ ✔️ - - ✔️ -
bye - - ✔️ - - - - - - -
caller - ✔️ - - - - - - - -
cap - - ✔️ - - - - - - -
cat - - - - ✔️ - - - - -
cd ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
chdir ✔️ - ✔️ - ✔️ - - ✔️ ✔️ ✔️
clone - - ✔️ - - - - - - -
command ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
compgen - ✔️ - - - - - - - -
------------ dash bash zsh ksh mksh posh yash busybox bosh pbosh
complete - ✔️ - - - - ✔️ - - -
compopt - ✔️ - - - - - - - -
continue ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
declare - ✔️ ✔️ - - - - - - -
dirs - ✔️ ✔️ - - - ✔️ - ✔️ -
disable - - ✔️ - - - - - - -
disown - ✔️ ✔️ ✔️ - - ✔️ - - -
echo ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
echotc - - ✔️ - - - - - - -
echoti - - ✔️ - - - - - - -
emulate - - ✔️ - - - - - - -
enable - ✔️ ✔️ - - - - - - -
enum - - - ✔️ - - - - - -
eval ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
exec ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
exit ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
export ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
false ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
fc o ✔️ ✔️ - ✔️ - ✔️ - ✔️ ✔️
fg ✔️ ✔️ ✔️ ✔️ ✔️ - ✔️ ✔️ ✔️ ✔️
------------ dash bash zsh ksh mksh posh yash busybox bosh pbosh
float - - ✔️ - - - - - - -
functions - - ✔️ - - - - - - -
getcap - - ✔️ - - - - - - -
getconf - - - ✔️ - - - - - -
getln - - ✔️ - - - - - - -
getops ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ - - -
global - - - - ✔️ - - - - -
hash ✔️ ✔️ ✔️ - ✔️ - ✔️ ✔️ ✔️ ✔️
help - ✔️ - - - - ✔️ ✔️ - -
hist - - - ✔️ - - - - - -
history - ✔️ ✔️ - - - ✔️ ✔️ ✔️ ✔️
integer - - ✔️ - - - - - - -
jobs ✔️ ✔️ ✔️ ✔️ ✔️ - ✔️ ✔️ ✔️ ✔️
kill ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
let ✔️ ✔️ ✔️ ✔️ ✔️ - - ✔️ - -
limit - - ✔️ - - - - - ✔️ -
local ✔️ ✔️ ✔️ - ✔️ ✔️ ✔️ ✔️ ✔️ -
log - - ✔️ - - - - - - -
logout - ✔️ ✔️ - - - - - - -
mapfile - ✔️ - - - - - - - -
------------ dash bash zsh ksh mksh posh yash busybox bosh pbosh
mknod - - - - ✔️ - - - - -
newgrp - - - ✔️ - - - - ✔️ ✔️
noglob - - ✔️ - - - - - - -
popd - ✔️ ✔️ - - - ✔️ - ✔️ -
print - - ✔️ ✔️ ✔️ - - - - -
printf ✔️ ✔️ ✔️ ✔️ - - ✔️ ✔️ ✔️ ✔️
pushed - ✔️ ✔️ - - - ✔️ - - -
pushln - - ✔️ - - - - - - -
pwd ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
r - - ✔️ - - - - - - -
read ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
readarray - ✔️ - - - - - - - -
readonly ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
realpath - - - - ✔️ - - - - -
rehash - - ✔️ - - - - - - -
rename - - - - ✔️ - - - - -
return ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
sched - - ✔️ - - - - - - -
set ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
setcap - - ✔️ - - - - - - -
------------ dash bash zsh ksh mksh posh yash busybox bosh pbosh
setopt - - ✔️ - - - - - - -
shift ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
shopt - ✔️ - - - - - - - -
sleep - - - ✔️ ✔️ - - - - -
source - ✔️ ✔️ - ✔️ - - ✔️ - -
stat - - ✔️ - - - - - - -
suspend - ✔️ ✔️ - ✔️ - ✔️ - ✔️ ✔️
test ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
time - ✔️ ✔️ ✔️ ✔️ - - - ✔️ -
times ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
trap ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
true ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
ttyctl - - ✔️ - - - - - - -
type ✔️ ✔️ ✔️ ✔️ ✔️ - ✔️ ✔️ ✔️ ✔️
typeset - ✔️ ✔️ ✔️ ✔️ - ✔️ - - -
ulimit ✔️ ✔️ ✔️ ✔️ ✔️ - ✔️ ✔️ ✔️ ✔️
umask ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
unalias ✔️ ✔️ ✔️ ✔️ ✔️ - ✔️ ✔️ ✔️ ✔️
unfunction - - ✔️ - - - - - - -
unhash - - ✔️ - - - - - - -
------------ dash bash zsh ksh mksh posh yash busybox bosh pbosh
unlimit - - ✔️ - - - - - - -
unset ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
unsetopt - - ✔️ - - - - - - -
vared - - ✔️ - - - - - - -
wait ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
whence - - ✔️ ✔️ ✔️ - - - - -
where - - ✔️ - - - - - - -
which - - ✔️ - - - - - - -

Clone this wiki locally