Linux Server and Workstation Configuration How To

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
file PDF Print E-mail
Monday, 14 December 2009 18:27
AddThis Social Bookmark Button

Command file

file command displays the type of data file based on rules defined in the file /usr/lib/magic (known as the magicfile).

Syntax

file [options] files

Options

-c displays formatted in a specified magic file (or file by default) and exits.
-m file1 [: file2: ... ] Indicates that other magic files.
-z scans compressed files.

Description

To 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

 

Add comment


Security code
Refresh

Useful Links

Follow us on ...

  • Digg: hgevs
  • Facebook Page: 180986722511
  • Linked In Group: 2571120
  • Ning: linuxconfignet
  • Twitter: linuxconfignet

Friends

Thanks David Ayvazyan for provided useful information and discussions.
www.gnu.am (Armenian Translation)