9.13. Shell Built-In Commands

The shell has a number of commands that are built-in to its source code. Because the commands are built-in, the shell doesn't have to locate them on disk, making execution much faster. The help feature provided with bash give you online help for any built-in command. The built-in commands are listed in Table 9.12 on page 481.

Table 9.12. Built-In Commands
CommandWhat It Does
:Do-nothing command; returns exit status zero.
. fileThe dot command reads and executes command from file.
break [n]See the looping commands on page 443.
:Do-nothing command; returns 0 exit status.
.Executes program in context of current process; same as source.
aliasLists and creates "nicknames" for existing commands.
bgPuts a job in the background. ...

Get Linux Shells by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.