How to view the ps-aux command of all processes in Linux

Source: Internet
Author: User

Many Commands, such as cd, mkdir, rmdir, and rm, are often seen during Linux learning. If you want to view the processes in the system, what commands should you use? In Linux, you can use ps-aux to view all processes. I hope you can learn the usage of ps-aux.

The w parameter indicates the command line for widening display. The w parameter can be written multiple times. Generally, it can be written three times at most, indicating that the command line is widened three times, which is enough to display a long command line. Example: ps-auxwww

Top: displays the system memory and cpu usage, and the process list can be automatically refreshed in j AE hIJNC.

Vmstat: displays the current memory usage

Netstat: displays network conditions. You can use the p parameter to view the corresponding process number and program name,

Generally, parameters a (display all connections) and n (do not reverse query the domain name and service name), such as netstat-anp.

To view the server listening status, use netstat-an | grep LISTEN.

Check the connection ESTABLISHED on the server. Use netstat-an | grep ESTABLISHED.

Ifconfig: view (or set) network device information

Ifconfig-a: view all network settings

Last: displays the logon status to the server and server restart status.

Df: displays the hard disk space and usage. @ BGcTjjBChLinux can contain the parameter h, and the display result is more user-friendly. For example:

Df-h hard drive space display by user

Df-k hard disk space is displayed in KB

Df-m hard disk space is displayed in MB

W: displays the list of users logging on to the server.

The above is a collection of ps-aux commands.

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.