it will show the type of the file
file file1
by using -b option ,output will only show the type of file omitting the file name
file -b file1
by using -b option ,output will only show the type of file omitting the file name
file -b file1
it will show mime type of files
file -i file1
if we have a compressed file we can see the uncompressed contents of a fiel
file -z compressed file name
file command can be used on multiple files
file file1 file2 file 3
it will display file type of all files
file *
want to display type of all files starting with m
file [m] *
displays type of all .txt files
file .txt*