加入收藏 | 设为首页 | 会员中心 | 我要投稿 海南站长网 (https://www.0898zz.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

linux查看分区类型(查看文件系统类型 centos)

发布时间:2023-01-09 15:06:16 所属栏目:Linux 来源:网络
导读: 大家好,又见面了,我是你们的朋友全栈君。
1,fdisk -l
fdisk -l 只能列出硬盘的分区表、容量大小以及分区类型,但看不到文件系统类型。
2,df -h
df 命令是用来查看文件系统磁盘空间使用

大家好,又见面了,我是你们的朋友全栈君。

1,fdisk -l

fdisk -l 只能列出硬盘的分区表、容量大小以及分区类型,但看不到文件系统类型。

2,df -h

df 命令是用来查看文件系统磁盘空间使用量的。但df 命令只会列出已挂载的文件系统信息,对于没有挂载的文件系统是查看不到的。使用这个命令可以很方便的查看已挂载的文件系统的空间使用量、剩余空间大小等信息。

3,parted

parted is a disk partitioning and partition resizing program. It allows you to create, destroy, resize, move and copy ext2, linux-swap, FAT, FAT32, and reiserfs partitions. It can create, resize, and move Macintosh HFS partitions, as well as detect jfs, ntfs, ufs, and xfs partitions. It is useful for creating space for new operating systems, reorganising disk usage, and copying data to new hard disks. This manual page documents parted briefly. Complete documentation is distributed with the package in GNU Info format; see near the bottom.

parted命令就比较强大了,用parted命令可以对大于2TB的磁盘设备进行分区linux分区工具,以及创建GPT分区(而fdisk命令就办不到了)。

如果要查看 /dev/sda 各分区的文件系统类型,可以按照以下步骤来查看:(主要是print list命令)

123

parted/dev/sda(parted) print list

1

parted命令还是很简单的。

(编辑:海南站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!