file

Format:

file filename 

This lets the shell determine the type of file.

					$ file core 
core: ELF 32-bit LSB core file of 'awk' (signal 6), Intel 80386, 
version 1 

$ file data.f 
data.f: ASCII text 

$ file month_end.sh 
month_end.sh: Bourne shell script text
				

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.