Exit Status and &&
What does mkdir /data/new && cd /data/new || echo "failed" do if mkdir fails?
mkdir /data/new && cd /data/new || echo "failed"
mkdir
Choose one answer
Runs cd, then prints "failed".
cd
Stops the shell.
Skips cd and prints "failed".
Runs cd but not echo.