https://drive.google.com/file/d/18Y6ffgUUSv_LCwaprXSe7ckYu3JlOcpC/view?usp=sharing
;The semicolon (;) allows you to run multiple commands one after another, regardless of whether each command succeeds or fails. Commands execute sequentially (one at a time).
command1; command2; command3
date; pwd; cal
echo Hello; echo World
Open a terminal.
Run:
date; pwd; whoami
Observe that all three commands run in order, even if one fails.
; when you want commands to run independently.&&, it does not check if the previous command succeeded.&The ampersand (&) runs a command in the background, allowing the next command to start immediately (in parallel). This is useful for long-running tasks.