O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required