it is a small technical issue, but with bash, on the command line, ";" means to continue. So you can type it all on one line. If it did not work there was a typo.
Code:
bodhi@ubuntu~# echo "1" ; echo "2"
1
2
With that in mind, 3 separate lines on the wiki is more readable and less technical (IMO)
On the command line, && and || are logical operators, and / or
Code:
bodhi@ubuntu~# ecko "1"
zsh: command not found: ecko
bodhi@ubuntu~# ecko "1" || echo "wrong command"
zsh: command not found: ecko
wrong command
bodhi@ubuntu~# ecko "1" && echo "wrong command"
zsh: command not found: ecko
bodhi@ubuntu~#
sure I am using zsh, same thing in bash.
Bookmarks