How colon and semicolon differs in linux command? -


how colon , semicolon differs in following linux commands?

    i:       i; 

in case doesn't matter much.

usually, ; used mark end of command in situations:

if [[ ... ]]; ...; else ...; fi 

the who command, however, produce same output regardless of 2 words on command line is. : not special:

$  $ makes dinner  $ ano.l::e se=el 

these produce exact same output.

so, answer question:

  1. the : part of word i: , doesn't mean special here.
  2. the semicolon marks end of command, , not needed since there no other command on line after it.

Comments

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -