赞
踩
cmd > cmd.out 2>&1 &
nohup command &
nohup command > nohupcmd.out 2>&1 &
fg和bg命令可以用 fg(bg) %jobid来指定执行命令,%jobid是通过jobs命令查到的后台正在执行的命令的序号(不是pid)。