Linux boot process
1. The computer's own BIOS program power-on self-test
2. The Linux bootloader runs
3. The Linux kernel is partially decompressed, loaded and run
4.Linux initialization process initjinx
The process of starting a computer and having its operating system loaded is called booting.
Linux process management
1. Running state (run): the process is running or ready to run at this time
2. Waiting state (wait): At this time, the process is waiting for the occurrence of an event or some kind of system resource
3. Stop state (stop): The process is stopped, and the process being debugged may be in a stopped state
4. Zombie: A process is terminated for some reason, but the control structure of the process is still preserved
View progress
The ps command is used to view information about the processes running in the current system. The format is:
ps[options]
Common options are as follows:
-a: show all processes on the terminal
-u: display user-facing format information
-x: show processes without a controlling terminal
end the terminal
1. kill command
The kill command uses the process number to end the running of the specified process. Its syntax is:
kill[9] Process ID
View the process number
#ps -e|grep xinetd
For example: the output is:
1665 ? 00:00:00 xinetd
2. killall command
The killall command uses the process name to end the running of the specified process.
kill [-9] process name
For example: to end the running of the xined process, the implementation command is:
#kill xined
task implementation
1. Start the ntpd process
#service ntpd start
2. View ntpd process information
#ps auxf | grep ntpd
4021 ? 00:00:00 ntpd
3. Force stop the ntpd process
#kill -9 4021