find file system type linux code example
Example 1: linux see file system type
fsck -N /dev/sd**
Example 2: find file type linux script
#! /bin/sh
if [ -f "$1" ] && [ "`file -b --mime-type \"$1\"`" = "image/jpeg" ]; then
echo "Good type for the file (JPEG)"
fi