What is the purpose of “&&” in a shell command?

As far as I know, using & after the command is for running it in the background.

Example of & usage: tar -czf file.tar.gz dirname &

But how about &&? (example)

Leave a Comment

tech