Notes Linux permissions for files and directories

  View the file or directory permissions command: ls -al

  # -A means all files contain hidden files, -l shows the detailed information of each file listed

  For example, execute ls -al

  total 115

  drwxr--x--- 4 root root 4096 Oct 24 02:07 install.log

  Format Description: Detailed information ls -al file formatted output, each file has 7.

  

640?wx_fmt=png

 

  The first column: drwxr - x --- There are 10 characters,

  The first character may contain values: d Directory - Common file, l link file, b block file, the file C character, s socket file, the pipe P file.

  9 following each character as a set of three characters, a combination of: rwx r: read authority, W: write authority, X: executable permissions, if there is no authority, represented by dashes.

  Second column: indicates the number of connections, number of connections as the number of files that the connector 1. Contents directory includes other directories total number +2.

  The third column: Indicates the owner of the file.

  The fourth column: that all groups of the file.

  The fifth column: The size of the file. Wuxi Women's Hospital Which is good http://www.xasgyy.net/

  The sixth column: the file was created or last modified time.

  Seventh column: The filename.

Guess you like

Origin www.cnblogs.com/djw12333/p/10967253.html