Useful characters
Pipe to chain commands together
Direct output to a file
Append content to existing file
Read content from a file
Shortcut for the home directory (eg. cd ~)
Represents the current directory
Traverse up one directory level (eg. cd ..)
Execute the script with the name script_name
Alternative way to executure script
Separate long commands with a \
at the end of each line
Example:
Join multiple commands together, but only run the second command if the first succeeds
Example:
Join multiple commands together, but only run the second command if the first one fails
Example:
Last updated