1、直接在后台运行命令用&
- [root@localhost shell]# cp hello helloo &
-
[30] 8732
2、将“当前”作业放到后台“暂停”用[Ctrl]+z
- [root@localhost shell]# vi ~/.bashrc
-
-
[33]+ Stopped vim ~/.bashrc
3、观察当前后台的作业状态用jobs
- [root@localhost shell]# jobs -l
-
[1] 2764 Stopped vim shiyan
-
[2] 3075 Stopped vim if2
-
[3] 3657 Stopped vim ifelifeise
-
[4] 3658 Stopped vim ifelse2
-
[5] 3661 Stopped vim ifelifeise
4、将后台作业拿到前台进行处理用fg
5、让作业在后台运行用bg
6、管理后台作业用kill
阅读(1625) | 评论(0) | 转发(1) |