Multiple commands can be given by using semicolon delimiter in between the commands as:
$ ssh user@host 'command1 ; command2 ; command3
In Bash, each command or command sequence is delimited by using a semicolon or a new
line. For example:
$ cmd1 ; cmd2
line. For example:
$ cmd1 ; cmd2
This is equivalent to:
$ cmd1
$ cmd2
$ cmd1
$ cmd2
即,bash中,分号的作用是命令分隔符。