前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >linux查看分区类型(查看文件系统类型 centos)

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

作者头像
全栈程序员站长
发布2022-07-29 15:28:29
9K0
发布2022-07-29 15:28:29
举报
文章被收录于专栏:全栈程序员必看

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

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的磁盘设备进行分区,以及创建GPT分区(而fdisk命令就办不到了)。

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

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

1 2 3

parted /dev/sda (parted) print list

1

parted命令还是很简单的。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/129298.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年4月1,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档