Run later commands only if earlier ones succeed.
Section: Shell Basics
Run command sequence
bash
bash
mkdir -p tmp && cd tmp && pwdExplanation
Use && for fail-fast sequences.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Shell Basics