Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Dec 032010
 

Determine file type using the file command

Answer:

If you want to determine file type, you can try the file command:

# file /usr/share/perl5/Time/Zone.pm
/usr/share/perl5/Time/Zone.pm: Perl5 module source text

# file /usr/share/vim/vim72/doc/usr_90.txt
/usr/share/vim/vim72/doc/usr_90.txt: ASCII English text

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>