Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐: 强烈推荐:Ylmf OS 3.0 正式版发布附迅雷高 XP系统下硬盘安装Fedora 14图文教程
搜索:
您的位置: Linux安全网 > Linux入门 > » 正文

redhat6_process

来源: 未知 分享至:

process

1)the relationship about filesystem and process.

filesystem  <= process  1@@@ long-lived (enduring) process

                        2@@@ short-lived (transient) process 

                        3@@@ backstage 

                        4@@@ backstage guard 

example:

1@@@@ long-lived (enduring) process 

bash 

[root@station13 Desktop]# vim 1.sh

[root@station13 Desktop]# chmod +x 1.sh

[root@station13 Desktop]# ./1.sh 

long-lived process

2@@@@ short-lived (transient) process

exec sleep 3  

the terminal is over three minutes later.it is a furcal execute.others commandsalmost do not furcal execute.

3@@@@ backstage and 4@@@@ backstage guard

session1:  sleep 999 &      

session2:  nohup sleep 888 

[root@station13 Desktop]# ps aux | grep sleep

root      2854  0.0  0.0   4036   492 pts/1    S    21:40   0:00 sleep 999

root      2873  0.0  0.0   4036   488 pts/2    S+   21:40   0:00 sleep 888

root      2897  0.0  0.0   4328   736 pts/3    S+   21:40   0:00 grep sleep

[root@station13 Desktop]# ps aux | grep sleep

root      2873  0.0  0.0   4036   488 ?        S    21:40   0:00 sleep 888

root      2899  0.0  0.0   4328   764 pts/3    S+   21:41   0:00 grep sleep

even though the terminal is over, the backstage guard would be exec behind the computer.

[root@station13 Desktop]# cat 1.sh


Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史