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.