This question already has an answer here:
Note: A B C are commands.....
Please tell me what the step process would be of these commands, so I can better understand the language..
A || B ; C = If A fails then run B then C? A ; B || C = Run A then B then C if (B fails... or is it if A fails?)?
What I am really after is something like this (but would like to understand the steps above):
If A fails, then run B, but if A succeeds, skip B then run C,d,e,etc (How can I do this with "||" ";" and/or "&&"?)
I found information from this link, but it only shows the steps of 2 commands, not 3.... https://askubuntu.com/questions/334994/which-one-is-better-using-or-to-execute-multiple-commands-in-one-line
Reason why another link does not answer this question:
So, next time if you need to chain 4 commands you'll ask a new question because the answers here only show how 3 commands work ?– don_crissti26 mins ago
No sir, because I'll understand the linguistic next step for the future :). Mostly because of this....: I was unclear if the command and switch(?) " || " in sequential order (command C in this case) was always looking at command (A) or if it was looking command (B). This is mostly because I was confused by someone saying this: A || B = Run B if A failed.. wasn't sure if the next command (C, D, etc etc) would look at A as well :) (duh is what it seems, but I don't know this language... so had to get clarity).