Linux 中查看内存使用情况和空间容量使用情况的命令 查看内存使用情况:free显示进程信息(包括CPU、内存使用等信息):top显示文件使用空间:du显示磁盘空间使用情况:df
查看内存使用情况:free free - Display amount of free and used memory in the system例如,以 M 为单位显示内存使用情况: free -m 显示进程信息(包括CPU、内存使用等信息):top top - display Linux processes例如: top 显示文件使用空间:du du - estimate file space usage例如: du anaconda-ks.cfg --block-size=K 显示磁盘空间使用情况:df df - report file system disk space usage例如: df --block-size=M