The File utility performs a series of tests on each of the specified files in an attempt to classify it.With text files, the utility tries to determine the programming language by reading the first 512 bytes.
For executable files, the utility displays information about the platform, version and structure of the files libraries.
EX:-
user@ubuntu:~$ file /bin/cat
/bin/cat: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
user@ubuntu:~$ file ./hello.rb
./hello.rb: a /usr/bin/ruby1.8 script text executable
No comments:
Post a Comment