ps aux command detailed explanation
ps -aux command detailed explanation
Recommended: "linux tutorial》
1) ps a displays all programs under the current terminal, including programs of other users.
3) When ps c lists programs, the real instruction name of each program is displayed, without including the path, parameters or identification of resident services.
4) ps -e The effect of this parameter is the same as specifying the "A" parameter.
5) When ps e lists programs, display the environment variables used by each program.
6) ps f uses ASCII characters to display the tree structure and express the relationship between programs.
7) ps -H displays a tree structure, indicating the relationship between programs.
8) ps -N displays all programs, except the programs under the terminal that execute the ps command.
9) ps s uses the program signal format to display the program status.
10) ps S includes interrupted subroutine information when listing programs.
11) ps -t
12) ps u Display program status in user-oriented format.
13) ps x Displays all programs, not distinguished by terminal.
14) ps -l is longer and displays the information of the PID in more detail
# ps -lA |more 1 F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S 0 1 0 0 76 0 - 1193 109952 ? 00:00:03 init 1 S 0 2 1 0 -40 - - 0 migrat ? 00:00:03 migration/0 1 S 0 3 1 0 94 19 - 0 ksofti ? 00:00:00 ksoftirqd/0 1 S 0 4 1 0 -40 - - 0 migrat ? 00:00:02 migration/1 1 S 0 5 1 0 94 19 - 0 ksofti ? 00:00:00 ksoftirqd/1 1 S 0 6 1 0 -40 - - 0 migrat ? 00:00:02 migration/2 1 S 0 7 1 0 94 19 - 0 ksofti ? 00:00:00 ksoftirqd/2
The meaning of related information:
F process flag (flag), 4 indicates that the user is a super user
S The status of the process (stat), the meaning of each STAT is shown below
PID The ID of the process
C CPU usage resources Percentage
PRI priority (priority) abbreviation,
NI Nice value,
ADDR core function, indicating that part of the memory of the process, if it is running Process, usually "-"
SZ The size of the memory used
WCHAN Whether the current process is running, if "-" means it is running
TTY login The terminal location of the user
TIME The time of the CPU used
CMD The command executed
# ps aux |more USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 4772 564 ? S Sep22 0:03 init [3] root 2 0.0 0.0 0 0 ? S Sep22 0:03 [migration/0] root 3 0.0 0.0 0 0 ? SN Sep22 0:00 [ksoftirqd/0] root 4 0.0 0.0 0 0 ? S Sep22 0:02 [migration/1] root 5 0.0 0.0 0 0 ? SN Sep22 0:00 [ksoftirqd/1] root 6 0.0 0.0 0 0 ? Ss+ Sep22 0:02 [migration/2] root 7 0.0 0.0 0 0 ? SN Sep22 0:00 [ksoftirqd/2] root 8 0.0 0.0 0 0 ? S Sep22 0:00 [migration/3] root 9 0.0 0.0 0 0 ? SN Sep22 0:00 [ksoftirqd/3] root 10 0.0 0.0 0 0 ? S< Sep22 0:00 [migration/4]
USER The owner of the process;
PID of the process ID;
PPID parent process;
%CPU percentage of CPU occupied by the process;
%MEM percentage of memory occupied;
NI NICE value of the process , a large value means less CPU time is occupied;
VSZ The amount of virtual memory used by the process (KB);
RSS The amount of fixed memory occupied by the process (KB) (resident) The number of pages);
TTY On which terminal the process is running (the terminal location of the login user), if it has nothing to do with the terminal, (?) is displayed. If it is pts/0, etc., it means that the host process is connected by the network
WCHAN Is the current process in progress? If it is -, it means it is in progress;
START The process is triggered to start the time;
TIME The actual CPU running time of the process;
COMMAND command name and parameters;
The process on Linux has 5 states:
1. Running (running or waiting in the run queue)
2. Interrupt (sleeping, blocked, waiting for a certain condition to form or receiving a signal)
3 . Uninterruptible (no wake-up and non-executable upon receiving a signal, the process must wait until an interrupt occurs)
4. Zombie (the process has been terminated, but the process descriptor exists until the parent process calls the wait4() system call Release after)
5. Stop (the process stops running after receiving SIGSTOP, SIGSTP, SIGTIN, SIGTOU signals)
Common status characters for STAT status bits:
D Uninterruptible dormant state (usually IO process);
R Running and queued;
S In dormant state;
T Stopped or tracked;
W Enters memory swap (invalid starting from kernel 2.6);
X Dead process (basically rare);
Z Zombie process;
N Lower priority process
L Some pages are locked into memory;
s The leader of the process (there are child processes under it);
l Multi-process (using CLONE_THREAD, similar to NPTL pthreads);
The process group located in the background;
The above is the detailed content of Detailed explanation of ps aux command. For more information, please follow other related articles on the PHP Chinese website!

The timing and reasons for using Linux maintenance mode: 1) When the system starts up, 2) When performing major system updates or upgrades, 3) When performing file system maintenance. Maintenance mode provides a safe and controlled environment, ensuring operational safety and efficiency, reducing impact on users, and enhancing system security.

Indispensable commands in Linux include: 1.ls: list directory contents; 2.cd: change working directory; 3.mkdir: create a new directory; 4.rm: delete file or directory; 5.cp: copy file or directory; 6.mv: move or rename file or directory. These commands help users manage files and systems efficiently by interacting with the kernel.

In Linux, file and directory management uses ls, cd, mkdir, rm, cp, mv commands, and permission management uses chmod, chown, and chgrp commands. 1. File and directory management commands such as ls-l list detailed information, mkdir-p recursively create directories. 2. Permission management commands such as chmod755file set file permissions, chownuserfile changes file owner, and chgrpgroupfile changes file group. These commands are based on file system structure and user and group systems, and operate and control through system calls and metadata.

MaintenanceModeinLinuxisaspecialbootenvironmentforcriticalsystemmaintenancetasks.Itallowsadministratorstoperformtaskslikeresettingpasswords,repairingfilesystems,andrecoveringfrombootfailuresinaminimalenvironment.ToenterMaintenanceMode,interrupttheboo

The core components of Linux include kernel, file system, shell, user and kernel space, device drivers, and performance optimization and best practices. 1) The kernel is the core of the system, managing hardware, memory and processes. 2) The file system organizes data and supports multiple types such as ext4, Btrfs and XFS. 3) Shell is the command center for users to interact with the system and supports scripting. 4) Separate user space from kernel space to ensure system stability. 5) The device driver connects the hardware to the operating system. 6) Performance optimization includes tuning system configuration and following best practices.

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

Linux maintenance mode can be entered through the GRUB menu. The specific steps are: 1) Select the kernel in the GRUB menu and press 'e' to edit, 2) Add 'single' or '1' at the end of the 'linux' line, 3) Press Ctrl X to start. Maintenance mode provides a secure environment for tasks such as system repair, password reset and system upgrade.

The steps to enter Linux recovery mode are: 1. Restart the system and press the specific key to enter the GRUB menu; 2. Select the option with (recoverymode); 3. Select the operation in the recovery mode menu, such as fsck or root. Recovery mode allows you to start the system in single-user mode, perform file system checks and repairs, edit configuration files, and other operations to help solve system problems.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

Notepad++7.3.1
Easy-to-use and free code editor

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
