Home >Operation and Maintenance >CentOS >How to view processes in centos

How to view processes in centos

尚
Original
2020-04-01 14:32:3533294browse

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.

How to view processes in centos

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.

How to view processes in centos

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:

How to view processes in centos

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn