Linux PS Command Logging

Source: Internet
Author: User

PS Command: View current system process status

Ps-a Show All current processes
Ps-ax shows no control of the terminal process
Ps-u better viewing the user better process
PS Aux|less filtering processes via CPU and memory
PS aux--sort-pcpu in ascending order based on CPU
PS aux--sort-pmem sorted in ascending order based on memory usage
Ps-aux--sort-pcpu,+pmem|head-n 10 synthesis to sort, showing top 10 results
Ps-c sshd Lookup sshd Process
Ps-f-C sshd View sshd detailed process information
Ps-l 1213 viewing threads for a particular process
PS-AXJF tree-shaped structure display process (Prtree)
PS-E listing programs, displaying program environment variables

Note: PS aux

User: Process Owner
Pid:pid
%CPU: CPU Usage consumed
%MEM: Percentage of physical memory used by the process
VSZ: The amount of virtual memory occupied
RSS: The amount of memory consumed
TTY: Secondary device number for the terminal (minor device numbers of TTY)
STAT: The status of the trip:
D: Non-interruptible static
R: Executing in progress
S: Stationary state
T: Pause execution
Z: Not present but cannot be eliminated temporarily
W: Not enough memory paging to allocate
<: High-priority stroke
N: Low-priority stroke
L: Memory paged out and locked in memory
Start: Process Start time
Time: When it was executed
Command: the command executed

1 ps aux--sory pcpu
#按CPU占用来排序

1 PS aux--sort-pmem 2 3 Memory occupancy rate sequencing

It's more practical to find out how it feels.

1 " SSH " 2 3 " 10.104.11.107

Linux PS Command Logging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.