shell 之 job
2016-05-24 02:20
351 查看
$ ping www.baidu.com & $ jobs $ jobs -l $ kill %1 # %后面是job号,可以与 kill pid 比较 $ fg %1 #切换到前台 $ ctrl + z #暂停程序,切换到后台 $ bg %1 #后台暂停的程序继续运行 $ disown -h %1 #job已经运行在终端时,来使某个job忽略HUP信号
参考:
http://blog.itpub.net/26277071/viewspace-714531/
http://blog.chinaunix.net/uid-26495963-id-3062757.html
https://www.cnblogs.com/zhming26/p/6089928.html
https://www.ibm.com/developerworks/cn/linux/l-cn-nohup/
相关文章推荐
- shell执行三种方法
- SHELL 详解
- shell基本操作
- Shell - 16
- shell(二)
- shell(一)
- bash:ll命令未找到问题
- bash扩展
- shell通配符
- go语言exec包调用shell命令
- Linux下配login.sql,并在.bash_profile中配置SQLPATH
- bash 数组
- bash shell总结
- 故障案例--mongo shell从库无法读的处理方法
- 【转】深入浅出ShellExecute
- Associate File Extension with Shell OPEN command and Application(转)
- 笔记整理之 SHELL 变量
- shell元字符
- 创建交互式shell脚本对话框
- shell 基本命令