Bash && and || Operators
&& runs the next command only if the previous one succeeded (exit status 0).
|| runs the next command only if the previous one failed.
Run a command after success
mkdir backup && echo "Folder created"
Folder created
Run a command after failure
cd missing || echo "Could not open the folder"
bash: cd: missing: No such file or directory
Could not open the folder