Linux system file attributes

1, Linux system file attributes


1.1 inode contains meta-information file, specifically, have the following:
  * Size bytes file
  * Uid file's owner User ID
  Group ID * Gid file
  read * Access files, write, and execute permissions
  time * file stamp, there are three: change refers to the time the inode change time, Modify time refers to the time the contents of the file changes, Access time refers to the time you open the file
  * Links number of links, that is, how many file names pointing to this inode
  * Inlde file data block location
  * blocks number of blocks
  * IO blocks block size
  * device device number
can be used stat command to view information about a file's inode.

1.2 File Type
  -: Normal files (text files, binary files, compressed files, image files, etc.)
  D: catalog file (dark blue)
  B: device file (block device) storage device a hard disk, / dev / sda, / dev
  c: the device file (character devices) printers, terminals, / dev / tty1, / dev / ZERO
  S: between socket file, process communication
  P: pipe files
  L: link file (light blue)
Note: The file extension does not represent any of the meanings just for easy identification.

May file with the command: View the file type


 

Guess you like

Origin www.cnblogs.com/liuzgg/p/11881596.html