Reference

while(1)

index of FreeBSD shell built-in commands

Part of alias(1).

NAME

builtin, keybinds – index of FreeBSD shell built-in commands

SYNOPSIS

See the manual for your shell for operation details.

DESCRIPTION

This page provides an index of builtin commands, keywords, and keyboard bindings provided by csh(1) and sh(1), the command line interpreters which comprise the BSD user environment.

Commands

Below is a table which lists builtin commands and keywords, whether they exist as standalone utilities, and the standard shells that provide them.

CommandStandalonecsh(1)sh(1)
!NoNoYes
%NoYesNo
.NoNoYes
:NoYesYes
@NoYesNo
[YesNoYes
{NoNoYes
}NoNoYes
aliasNoYesYes
allocNoYesNo
bgNoYesYes
bindNoNoYes
bindkeyNoYesNo
breakNoYesYes
breakswNoYesNo
builtinNoNoYes
builtinsNoYesNo
caseNoYesYes
cdNoYesYes
chdirNoYesYes
commandNoNoYes
completeNoYesNo
continueNoYesYes
defaultNoYesNo
dirsNoYesNo
doNoNoYes
doneNoNoYes
echoYesYesYes
echotcNoYesNo
elifNoNoYes
elseNoYesYes
endNoYesNo
endifNoYesNo
endswNoYesNo
esacNoNoYes
evalNoYesYes
execNoYesYes
exitNoYesYes
exportNoNoYes
falseYesNoYes
fcNoNoYes
fgNoYesYes
fiNoNoYes
filetestNoYesNo
forNoNoYes
foreachNoYesNo
getoptsNoNoYes
globNoYesNo
gotoNoYesNo
hashNoNoYes
hashstatNoYesNo
historyNoYesNo
hupNoYesNo
ifNoYesYes
jobidNoNoYes
jobsNoYesYes
killYesYesYes
limitNoYesNo
localNoNoYes
logNoYesNo
loginYesYesNo
logoutNoYesNo
ls-FNoYesNo
niceYesYesNo
nohupYesYesNo
notifyNoYesNo
onintrNoYesNo
popdNoYesNo
printenvYesYesNo
printfYesNoYes
pushdNoYesNo
pwdYesNoYes
readNoNoYes
readonlyNoNoYes
rehashNoYesNo
repeatNoYesNo
returnNoNoYes
schedNoYesNo
setNoYesYes
setenvNoYesNo
settcNoYesNo
settyNoYesNo
setvarNoNoYes
shiftNoYesYes
sourceNoYesNo
stopNoYesNo
suspendNoYesNo
switchNoYesNo
telltcNoYesNo
testYesNoYes
thenNoNoYes
timeYesYesNo
timesNoNoYes
trapNoNoYes
trueYesNoYes
typeNoNoYes
ulimitNoNoYes
umaskNoYesYes
unaliasNoYesYes
uncompleteNoYesNo
unhashNoYesNo
unlimitNoYesNo
unsetNoYesYes
unsetenvNoYesNo
untilNoNoYes
waitNoYesYes
whereNoYesNo
whichYesYesNo
whileNoYesYes

Keybinds

The command line environment also provides the following default keyboard bindings:

Signalcsh(1)sh(1)
Backspace^H^H
Carriage Return^M | ^J^M | ^J
Tab^I^I
Beginning of Line^A^A
End of Line^E^E
Cursor Forward^F^F
Cursor Backward^B^B
Clear Screen^L^L
Cut Line^U^U
Cut Word Backwards^W^W
Cut Rest of Line^K^K
Paste Last Cut^Y^Y
Typo^T^T
End of File (EOF)^D^D
Interupt (SIGINT)^C^C
Process info (SIGINFO)^T^T
Search HistoryNo^R
Exit Search HistoryNo^G
Previous Command^P^P
Next Command^N^N
Print Next Character^V^V
Pause Job^S^S
Resume Job^Q^Q
Suspend Job (SIGTSTP)^Z^Z
Scrollback ModeScrLk*ScrLk*

*: Bindings marked ‘*’ are provided by vt(4), the console driver.

SEE ALSO

csh(1), echo(1), false(1), kill(1), login(1), nice(1), nohup(1), printenv(1), printf(1), pwd(1), sh(1), test(1), time(1), true(1), which(1)

HISTORY

The builtin manual page first appeared in FreeBSD 3.4.

AUTHORS

This manual page was written by Alexander Ziaee ⟨[email protected]⟩ from an earlier version by Sheldon Hearn ⟨[email protected]⟩.

CAVEATS

While builtin commands may exist in more than one shell or standalone, each may be implemented differently.

Standalone utilities and their manuals must be called by their path from a shell with a builtin command of the same name.

History