帮助与文档

当前位置: 主页 > 系统相关 > 正文

Centos7.6系统查看磁盘常用命令

时间:2024/4/25 8:51:19   来源:米安网络   作者:云主机配置专家   点击:16次
orphans: 2; widows: 2; background: #ffffff;">用户在使用云服务器时,时刻掌握服务器的磁盘使用情况对于更合理地配

orphans: 2; widows: 2; background: #ffffff;">置业务是必须的;

orphans: 2; widows: 2; background: #ffffff;">以下介绍Centos 7.6系统下磁盘查看的常见命令。

orphans: 2; widows: 2; background: #ffffff;">本配置适用于centos7.x 和Centos 6.x版本

orphans: 2; widows: 2; background: #ffffff;">

orphans: 2; widows: 2; background: #ffffff;">以下为操作步骤:

1.查看分区和磁盘:

orphans: 2; widows: 2; background: #ffffff;">lsblk

orphans: 2; widows: 2; background: #ffffff;">

orphans: 2; widows: 2; background: #ffffff;">

2.查看空间使用情况:

df -h

3.分区工具查看分区信息

orphans: 2; widows: 2;">

4.查看硬盘label(别名)

orphans: 2; widows: 2;">

orphans: 2; widows: 2; background: #ffffff;">

5.统计当前目录各文件夹大小

orphans: 2; widows: 2; background: #ffffff;">

orphans: 2; widows: 2; background: #ffffff;">

6.查看内存大小

orphans: 2; widows: 2; background: #ffffff;">

7.查看CPU核心数

orphans: 2; widows: 2; background: #ffffff;">cat /proc/cpuinfo| grep "cpu cores"| uniq

orphans: 2; widows: 2; background: #ffffff;">

版权保护: 本文「Centos7.6系统查看磁盘常用命令」由 云主机配置专家 原创,转载请保留链接: https://www.miandns.com/docs/system/1019.html

联系客服

0312-5535754

微信公众号