ps、pstree、top、kill、ctrl+z、bg
时间: 2023-11-08 15:30:07 浏览: 83
1. ps - Displays information about the processes currently running on the system, including their process ID (PID), status, CPU usage, memory usage, etc.
2. pstree - Displays the processes running on the system as a tree, showing the parent-child relationships between processes.
3. top - Provides real-time information about the processes running on the system, including their resource usage, CPU usage, memory usage, etc.
4. kill - Sends a signal to a process to terminate it. The signal can be specified using the signal number or signal name. For example, to terminate a process with PID 1234, use the command "kill 1234".
5. ctrl z - Suspends a currently running process by sending it the SIGSTOP signal. The process can be resumed later using the "fg" or "bg" command.
6. bg - Runs a suspended process in the background, allowing the user to continue using the terminal while the process runs. The process can be resumed later using the "fg" command.
阅读全文