SSH Keys

Explanation of &&, ||, and -

&& is shorthand for "if true then do"|| is shorthand for "if false then do"These can be used separately or together as needed. The following examples will attemptto change directory to "/tmp/mydir"; you will get different results based on whether"/tmp/mydir" exists or not.cd /tmp/mydir && echo was able to change directorycd /tmp/mydir || echo was not able to change directorycd /tmp/mydir && echo was able to change directory || echo was not able to change to directorycd /tmp/mydir && echo success || echo failurecd /tmp/mydir && echo success || { echo failure; exit; }

The dash "-" is used to reference either standard input or standard output. The context in which the dash is used is what determines whether it references standard input or standard output.