In case of bash:
$ cmd &
In case of ssh (we want cmd to be executed after we input the password):
$ ssh -f user@host cmd
In case of sudo (we want cmd to be executed after we input the password):
$ sudo -b cmd
In case of bash:
$ cmd &
In case of ssh (we want cmd to be executed after we input the password):
$ ssh -f user@host cmd
In case of sudo (we want cmd to be executed after we input the password):
$ sudo -b cmd
转载于:https://www.cnblogs.com/unimous/archive/2013/01/18/2866052.html