O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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
				

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required