You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -647,6 +647,18 @@ Regular expressions.
647
647
648
648
## Process control commands
649
649
650
+
### Types of processes
651
+
- user process: started by a regular user, they run in the user space. a user process dosen't have special access to the cpu/files that dosen't belongs to him.
652
+
- daemon process:
653
+
- designed to run in background, it manages some ongoing service, like sshd, httpd.
654
+
- Generally they are managed by the user root. But tey run as non root user for security reasons, there is a dedicated user account for those types of processes, like sshd for the service sshd...
655
+
- They are often started automatically and shutdown when the system is stoped.
656
+
- They can be started and stoped on demand.
657
+
- Kenrel process:
658
+
- similar to daemon process, but they run in kernel space.
659
+
- kernel process have access to kernel data structure which made them powerful.
660
+
- dificult to change the behaviour of the kernel process, for the daemon it is possible to change its behaviour by adapting the configuration files.
661
+
650
662
### background/foreground mode
651
663
- run a process in background mode: `man ls &`, the man program will run in the background mode, we can also send a process to bakground by typing `ctrl+z` when it is in a running mode.
652
664
- to see how many jobs we have (background running process): `jobs`
0 commit comments