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 相关文章: