Linux&unix Program Development Basics Tutorial
-----Reading notes
6th Chapter Linux/unix Process
1, when a command is running in the foreground, it always controls the keyboard.
2,ctrl+z suspends a foreground process, CTRL + C terminates a foreground process. You can make the command run in the background by adding the & symbol at the end of the command.
3, in the Linux/unix system, the daemon is the system process running in the background.
4,ps: Displays information about the running process.
5,fg[% Job Code] switch a background command to the foreground execution, bg[% the job code to switch a foreground command to the background execution.
6,[root@localhost/etc]# Jobs
[1] + Done Cat Group |
Suspended more
The 7,suspend command suspends the current shell process.
8,kill [-Signal number]-process list
Signal Number: 1, abort 2, interrupt 9, will kill 15, software signal