24.1. Complete list of shell built-in commands

Table 24.1 shows a complete list of the standard built-ins.

Table 24.1. Standard built-in commands
: Null, will always return true
. Read files from the current shell
break Exists from a for, while, until or case statement
cd Change the current directory
continue Carry on with the next iteration of the loop
echo Write output to the standard output
eval Read the argument and execute the resulting command
exec Execute the command but not in this shell
exit Exit the shell
export Export the variables so that they are available to the current shell
pwd Display the current directory
read Read a line of text from standard input
readonly Make this variable read-only
return Exit the function with a return ...

Get Linux and Unix Shell Programming 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.