| file |
|
|
|
| Monday, 14 December 2009 18:27 |
Command filefile command displays the type of data file based on rules defined in the file /usr/lib/magic (known as the magicfile). Syntaxfile [options] files
Options-c displays formatted in a specified magic file (or file by default) and exits. DescriptionTo determine the type of data in these files, the file command uses the rules specified in the file /usr/lib/magic. For example, using the command file you check the type of each file in the directory /usr/lib as follows: file * | more |