Home > Article > Operation and Maintenance > How to view processes in centos
centos can use the following command to view the process:
1. ps command
ps command is the most commonly used process viewing tool in Linux systems , mainly used to display static snapshots containing complete information about each currently running process. Through different options, you can selectively view process information.
a: Displays all process information under the current terminal, including processes of other users
u: User-oriented process status
x: Usually with a parameter Use together to display the process information of the current user in all terminals
-e: Display all process information in the system
-l: Use long format to display process information
-f: Display process information in complete format
Example: Execute the "ps aux" command. Process information will be displayed in a simple list form.
2. top command
The top command will display the process ranking in the current terminal with a full-screen interactive interface and track system resources such as CPU and memory in real time. The occupancy status is refreshed every three seconds by default, and its function is similar to the task manager in Windows systems.
3. pgrep command
Use the pgrep command to query specific properties based on the name of the process, the user running the process, the terminal where the process is located, etc. The PID number of the process.
For example, view all processes running by user fan:
Recommended tutorial: centos tutorial
The above is the detailed content of How to view processes in centos. For more information, please follow other related articles on the PHP Chinese website!