File System is a method used by operating system to keep track files and directory on partition . In other words we can say that file system is used to control how data is stored or retrieved in partition . Linux support several types of file system . We will discuss about these file system in this article .

In this article we will explain how to check file system type in linux . Before that first know about common types of file system used in linux . Each file system has its own properties and structure .

Types of File System

  • ext – It is most older version
  • ext2 – It has more features and compatibility . it is designed to have more features and easily to use .
  • ext3 – It contains all features of ext3 as well as contains some other important features .It is allowing journaling . Journaling has a dedicated area in file system , where all the changes are tracked .
  • ext4 – A new features is added called ‘extent’ . It is a single descriptor that represents a range of contiguous block .
  • jfs – It is designed by IBM to work in high performance environment .
  • xfs – It is designed by silicon Graphics to work as a 64-bit journaling filesystem . It is designed to maintain large files with high performance environment .

Let’s move forward and learn how to check file system type in linux .

Check File System type in Linux

There are many method to check file system type in linux . We are going to discuss about some of the method .

1. Using df Command 

df is used to report disk space uses in file sysetm . Use -T flag to see file system type

The output of above command looks like –

2. Using mount command

mount command is used to mount a file system in linux .

you can see file system type using mount command . The output of above command looks like –

check file system type in linux
3. using file command 

you can see file system type by using file command with -s flag .

The output of above command is –


4. using blkid command

You can also check file system type using blkid command .blkid is used to print block devices attributes .

The output of the ablove command is –

blkid command
5. Using fstab file 

you can check file system type in linux by viewing /etc/fstab file

The output of above command is –

fstab file
6. Using parted command

parted is a partition manipulation program . You can check file system type using parted command with -l flag

The output of above command is –

parted command
In this article i explained how to check file system type in linux . I hope this is useful for you .