zoukankan      html  css  js  c++  java
  • linux下查看文件系统类型

    1. df -hT命令  

    -h, --human-readable  print sizes in human readable format (e.g., 1K 234M 2G)

    -T, --print-type      print file system type

    [root@rhel7 ~]# df -hT
    Filesystem            Type      Size  Used Avail Use% Mounted on
    /dev/mapper/rhel-root xfs        18G  4.5G   13G  26% /
    devtmpfs              devtmpfs  911M     0  911M   0% /dev
    tmpfs                 tmpfs     921M     0  921M   0% /dev/shm
    tmpfs                 tmpfs     921M  8.4M  912M   1% /run
    tmpfs                 tmpfs     921M     0  921M   0% /sys/fs/cgroup
    /dev/sdb1             ext4      4.8G   20M  4.6G   1% /testdisk
    /dev/sda1             xfs       497M  124M  374M  25% /boot
    tmpfs                 tmpfs     185M     0  185M   0% /run/user/0

    xfs是RHEL7版本默认的文件系统类型。

    2. 使用parted磁盘管理工具查看

    [root@rhel7 ~]# parted
    GNU Parted 3.1
    Using /dev/sda
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) print list                                                       
    Model: ATA VBOX HARDDISK (scsi)
    Disk /dev/sda: 21.5GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start   End     Size    Type     File system  Flags
     1      1049kB  525MB   524MB   primary  xfs          boot
     2      525MB   21.5GB  20.9GB  primary               lvm
    
    
    Model: ATA VBOX HARDDISK (scsi)
    Disk /dev/sdb: 5369MB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start   End     Size    Type     File system  Flags
     1      1049kB  5369MB  5368MB  primary  ext4
    
    
    Model: ATA VBOX HARDDISK (scsi)
    Disk /dev/sdc: 2147MB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start   End    Size   Type     File system     Flags
     1      1049kB  106MB  105MB  primary  linux-swap(v1)
    
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/rhel-swap: 2147MB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    Disk Flags: 
    
    Number  Start  End     Size    File system     Flags
     1      0.00B  2147MB  2147MB  linux-swap(v1)
    
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/rhel-root: 18.8GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    Disk Flags: 
    
    Number  Start  End     Size    File system  Flags
     1      0.00B  18.8GB  18.8GB  xfs
    
    
    (parted) quit                                                             
    [root@rhel7 ~]# 
  • 相关阅读:
    Redis原理篇
    Redis基础
    CentOS7 Redis5.0.5环境搭建
    通用后台管理系统(10)项目打包、修改配置文件、项目开源地址
    通用后台管理系统(9)-编写首页接口、实现、控制器
    通用后台管理系统(8)-编写登入控制器
    生成常用的msf
    badusb资料收集
    后渗透之meterpreter攻略
    linux命令备忘录
  • 原文地址:https://www.cnblogs.com/rusking/p/5740390.html
Copyright © 2011-2022 走看看