[Operating System] System Monitoring

Article Directory

System status view

ps

ps -ax
ps -aux
ps -aux | grep wps

top

real time monitoring

Order describe
[space] Refresh display now
h show help screen
k kill a process
n Change the number of processes to display
u sort by user
M sort by memory usage
P By CPU usage
q exit top
%CPU us【用户】 sy【系统】 ni id wa hi si st

free

View system free and used memory

free	# 默认,字节,byte为单位
free -m	#M为单位
free -h	#G为单位

blkid

Display the underlying information of available block devices
View disk usage status

1 - 需要 root 权限;非 root用户,使用 lsblk


blkid	#显示所有块设备的可用属性,如UUID、文件系统类型等
blkid /dev/sda	#显示指定块设备的可用属性

lsblkvery useful! ! !

df

View file system

df -Th	#h为了以G单位显示
df -h

of

view file size

The du command may soar the load of the server, it is recommended not to use the server with high load

du -h #  G 为单位
du -sh

Guess you like

Origin blog.csdn.net/Sanayeah/article/details/126980735