Tuesday, September 28, 2010

file command

The file command:

http://linux.about.com/library/cmd/blcmdl1_file.htm

file [ -bciknsvzL ] [ -f namefile ] [ -m magicfiles ] file Am ] ...
file -C [ -m magicfile ]

File test each argument in an attempt to classify it.  

Three set of tests:  filesystem tests, magic number tests, and language tests.

The first test that succeeds prints the file type.

NOTE:  This test devices also.

Getting the source code for file:

Add the following line to the /etc/apt/sources.list file.

Update the sources.


 $ apt-get update
Get the source

 
$ apt-get source file







No comments: