Quick Answer: What Does Double Pipe Mean in Linux?
Contents

For this one, the touch command is run, or attempted to run. If it has a zero exit status, then the double pipe OR kicks in, and tries to execute the echo command.

What does double mean in Linux?

A double-dash in a shell command signals the end of options and disables further option processing. … This command outputs all occurrences of the string hello from the specified file.

What does || mean in bash?

Just like && , || is a bash control operator: && means execute the statement which follows only if the preceding statement executed successfully (returned exit code zero). || means execute the statement which follows only if the preceding statement failed (returned a non-zero exit code).

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest