Saturday, August 27, 2016

How to check file format for linux system

File system can be checked though one of below commands in linux system. these can be exeucted to check file system of given or all devices provided you have permission to do so.

1. using "df" disk filesystem command
   
-bash-3.2$ df -T | awk '{print $1,$2,$NF}' | grep "^/dev"
2. Using "/etc/fstab"

-bash-3.2$ cat /etc/fstab

3. Using "mount" command

-bash-3.2$ mount | grep "^/dev"
4. Using "file" command

file -sL /dev/sda1
5.  Using fsck command

fsck -N /dev/sda1



No comments:

Post a Comment