Recently, I started learning LPIC201, but since there are many resource confirmation commands, I decided to summarize them.
sar [Option] [Display interval (seconds) [Number of times]] Converts the binary data collected by the sadc command into text format and displays various information.
| option | meaning |
|---|---|
| -u | Show CPU usage |
| -P number or ALL | Show specified CPU usage |
| -r | Show physical memory usage |
| -S | Show swap space usage |
| -b | Disc I/Show the status of O |
| -n DEV | Display information on sent / received packets on the network interface |
| -n EDEV | Displays information about transmission / reception error packets on the network interface |
| -f file name | Specify the log file to retrieve the data |
ss [option] Display information about network status. An alternative to netstat.
| option | meaning |
|---|---|
| -a | Show all sockets |
| -n | Display address and port numerically |
| -t | Show tcp |
| -u | Show udp |
| command | meaning |
|---|---|
| w | View logged-in users and their process information |
| mpstat | Shows CPU usage on multiprocessor systems |
| vmstat | Displays detailed information on physical memory and swap area, as well as process and CPU statistics. |
| iostat | Disc I/Display O information and CPU usage |
| netstat | Display information about network status |
| free | Display memory and swap area usage |
| pidstat | Display the operating status of each running process |
| uptime | Display system uptime and average load |
| top | CPU and memory usage status for each process is updated and displayed at regular intervals. |
| htop | Power-up version of top command |
| iotop | Disc I/Display O information for each process |
There are many commands with similar meanings and it is difficult to remember ... I will update it as I learn new commands!
Recommended Posts