First page Back Continue Last page Overview Graphics
Sequential commands
Can type the next command in your terminal even when the current one is not over.
Can separate commands with the ; symbol:
echo “I love thee”; sleep 10; echo “ not”
Conditionals: use || (or) or && (and):
more God || echo “Sorry, God doesn't exist”
Runs echo only if the first command fails
ls ~sd6 && cat ~sd6/* > ~sydney/recipes.txt
Only cats the directory contents if the ls command succeeds (means read access).