Home  >  Article  >  Operation and Maintenance  >  linux view system processes

linux view system processes

尚
Original
2019-10-23 15:34:0219172browse

In Linux, you can view system processes through the ps command. The syntax is "ps [options] [--help]". Common parameters include: 1. a displays all processes; 2. "-a" displays All programs under the same terminal; 3. "-A" displays all processes c; 4. "-N" reverse selection; 5. e displays variables.

linux view system processes

Linux system processes can be viewed through ps: ps is the most basic and also very powerful process viewing command. Use this command to determine which ones The process is running and running status, whether the process has ended, whether the process is zombie, which processes occupy too many resources, etc.

Recommended: "linux video tutorial"

##ps command syntax:

ps [options] [- -help]

Common parameters of ps command:

  • a Display all processes

  • -a Display all programs under the same terminal

  • -A Display all processes c Display the real name of the process

  • -N Reverse selection

  • -e is equal to "-A"

  • e Display environment variables

  • f Display the relationship between programs

  • -H Display tree structure

  • r Display the current terminal process

  • T Display All programs of the current terminal

  • u All processes of the specified user

You can view all processes of the system through the command "ps -eFH", where The meaning of each parameter:

  • UID: Process owner ID

  • PID: Process ID

  • PPID: Parent process ID

  • SZ: Page size of the core image of the process

  • C: CPU scheduling situation

  • RSS: The actual memory size occupied by the process (unit is 1KB)

  • PSR: The logical processor number of the processor bound to the kernel thread

  • STIME: The startup time of the process

  • TTY: Which terminal the process is running on

  • TIME: The process occupies the CPU The sum of the time

  • CMD: Command to start the process

View all processes in the system through the command "ps aux", and the meaning of each parameter :

  • USER: Process owner;

  • PID: pid;

  • %CPU: Occupied cpu usage;

  • %MEM: Occupied memory usage;

  • VSZ: Virtual memory set;

  • RSS: resident memory set;

  • TTY: whether it is a program executed by the login user (tty1-tty6, for local login, if it is pts Or?, it is a remote login)

  • STAT: status of the process;

  • START: program start time

  • TIME: The time when the program is running

  • COMMAND: The executed command.

The above is the detailed content of linux view system processes. 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