A shell script lets you write shell commands to run in sequence, which can save time and reduce errors.
Create a shell file
Open the file in any editor and write shell commands (one per line).
The file must have execute permissions to run:
chmod +x /path/to/yourscript.sh
Run the shell script:
# From anywhere /path/to/yourscript.sh # From current directory ./yourscript.sh