See Filesystems In Linux

www‮ual.‬tturi.com
See Filesystems In Linux

To view the filesystems currently mounted on a Linux system, you can use the mount command. This will display a list of all the filesystems that are currently mounted, along with their type and mount point. For example:

$ mount
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
devtmpfs on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=549980,mode=755)
...

You can also use the df command to view information about the available disk space on each mounted filesystem. The df command displays the filesystem name, the total size of the filesystem, the amount of space used, and the available space:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       9.8G  6.3G  3.1G  67% /
tmpfs           1.9G     0  1.9G   0% /run
devtmpfs        2.0G     0  2.0G   0% /dev
...

To view more detailed information about a specific filesystem, you can use the stat command. For example:

$ stat -f /dev/sda1
  File: "/dev/sda1"
  ID: 0 Namelength: 255    Type: ext4
Block size: 4096           Fundamental block size: 4096
Blocks: Total: 24419096   Free: 9156962  Available: 7636462
Inodes: Total: 61440      Free: 61138

You can also use the lsblk command to view information about block devices on the system, including their size, type, and mount point. For example:

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   9.8G  0 disk 
├─sda1   8:1    0   9.8G  0 part /
├─sda2   8:2    0     1K  0 part 
└─sda5   8:5    0   9.8G  0 part 
sdb      8:16   0    20G  0 disk 
└─sdb1   8:17   0    20G  0 part /mnt/external
Created Time:2017-10-30 14:27:18  Author:lautturi