Home » Linux/Unix » Linux: Bash Built-in Commands Cheat Sheet (PDF, Image)

Linux: Bash Built-in Commands Cheat Sheet (PDF, Image)

Here I am sharing Linux bash built-in commands cheat sheet in PDF and image format.

Download Bash Built-in Commands Cheat Sheet in PDF and JPG

PDF - Image (JPEG)

Linux Bash Built-in Commands List

Command Description
: Expands listed arguments and redirects as specified.
. Reads and executes commands from a designated file in the current shell.
alias Defines an alias for the specified command.
bg Resumes a job in background mode.
bind Binds a keyboard sequence to a read line function or macro.
break Exits from a for, while, select, or until loop.
builtin Executes the specified shell built-in command.
caller Returns the context of any active subroutine call.
cd Changes the current directory to the specified directory.
command Executes the specified command without the normal shell lookup.
compgen Generates possible completion matches for the specified word.
complete Displays how the specified words would be completed.
compopt Changes options for how the specified words would be completed.
continue Resumes the next iteration of a for, while, select, or until loop.
declare Declares a variable or variable type.
dirs Displays a list of currently remembered directories.
disown Removes the specified jobs from the jobs table for the process.
echo Displays the specified string to STDOUT.
enable Enables or disables the specified built-in shell command.
eval Concatenates the specified arguments into a single command, and executes the command.
exec Replaces the shell process with the specified command.
exit Forces the shell to exit with the specified exit status.
export Sets the specified variables to be available for child shell processes.
fc selects a list of commands from the history list.
fg Resumes a job in foreground mode.
getopts Parses the specified positional parameters.
hash Finds and remembers the full pathname of the specified command.
help Displays a help file.
history Displays the command history.
jobs Lists active jobs.
kill Sends a system signal to the specified process ID (PID).
let Evaluates each argument in a mathematical expression.
local Creates a limited-scope variable in a function.
logout Exits a login shell.
mapfile Reads STDIN lines and puts them into an indexed array.
popd Removes entries from the directory stack.
printf Displays text using formatted strings.
pushd Adds a directory to the directory stack.
pwd Displays the pathname of the current working directory.
read Reads one line of data from STDIN, and assigns it to a variable.
readarray Reads STDIN lines, and puts them into an indexed array.
readonly Reads one line of data from STDIN, and assigns it to a variable that can't be changed.
return Forces a function to exit with a value that can be retrieved by the calling script.
set Sets and displays environment variable values and shell attributes.
shift Rotates positional parameters down one position.
shopt Toggles the values of variables controlling optional shell behavior.
source Reads and executes commands from a designated file in the current shell.
suspend Suspends the execution of the shell until a SIGCONT signal is received.
test Returns an exit status of 0 or 1 based on the specified condition.
times Displays the accumulated user and system shell time.
trap Executes the specified command if the specified system signal is received.
type Displays how the specified words would be interpreted if used as a command.
typeset Declares a variable or variable type.
ulimit Sets a limit on the specific resource for system users.
umask Sets default permissions for newly created files and directories.
unalias Removes specified alias.
unset Removes the specified environment variable or shell attribute.
wait Waits for the specified process to complete, and returns the exit status.

See also: