shell 后台执行命令

来源:互联网 发布:ubuntu ssh服务开启 编辑:程序博客网 时间:2024/06/18 05:18
shell 后台执行命令方法:

1、 nohup cmd &          后台会生成 nohup.out 文件

 

2、cmd >/路径/xx.log &   后台生成 xx.log 文件

 

 

3、后台任务切换至前台   fg % jobID

 

4、终止后台命令  kill 程序ID号

0 0