1. Df-ht command
-H,--human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-T,--print-type print file system type
[Email protected] ~]# DF-htfilesystem Type Size used Avail use%mounted on/dev/mapper/rhel-root XFS 18G4.5G 13G -% /Devtmpfs Devtmpfs 911M0911M0% /Devtmpfs Tmpfs 921M0921M0%/dev/Shmtmpfs Tmpfs 921M8.4M912M1% /Runtmpfs Tmpfs 921M0921M0%/sys/fs/Cgroup/DEV/SDB1 EXT44.8G 20M4.6G1% /TestDisk/DEV/SDA1 XFS 497M 124M 374M -% /Boottmpfs Tmpfs 185M0185M0%/run/user/0
XFS is the default file system type for the RHEL7 version.
2. Use the parted Disk Management tool to view
[[Email protected] ~]# Partedgnu Parted3.1Using/dev/sdawelcome to GNU Parted! Type' Help'To view a list of commands. (parted) Print List Model:ata VBOX harddisk (SCSI) Disk/DEV/SDA: +. 5GBSector size (Logical/physical): 512b/512BPartition table:msdosdisk flags:number Start End Size Type File system Flags11049kB 525MB 524MB primary XFS boot2525MB +.5GB -. 9GB Primary lvmmodel:ata VBOX harddisk (SCSI) Disk/dev/sdb:5369mbsector size (logical/physical): 512b/512BPartition table:msdosdisk flags:number Start End Size Type File system Flags11049kB 5369MB 5368MB primary ext4model:ata VBOX harddisk (SCSI) Disk/dev/sdc:2147mbsector size (logical/physical): 512b/512BPartition table:msdosdisk flags:number Start End Size Type File system Flags11049kB 106MB 105MB Primary linux-Swap (v1) model:linux device-Mapper (linear) (DM) Disk/dev/mapper/rhel-swap:2147mbsector size (logical/physical): 512b/512BPartition table:loopdisk flags:number Start End Size File system Flags1 0.00B 2147MB 2147MB linux-Swap (v1) model:linux device-Mapper (linear) (DM) Disk/dev/mapper/rhel-root: -. 8GBSector size (Logical/physical): 512b/512BPartition table:loopdisk flags:number Start End Size File system Flags1 0.00B -.8GB -. 8GB XFS (parted) quit [[email protected]~]#
View file system types under Linux