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