Linux file properties

Source: Internet
Author: User

Input command: Ls-al

File type permissions:

    • The first character represents this file as "directory , file or link file, etc.":
      • When [ d] is the directory;
      • When [ -] is the directory;
      • If [ l] is indicated as the link file;
      • If [ b] is indicated as the storage peripheral device in the device file (can be randomly accessed);
      • If [ c] is indicated as a serial device inside the device file, such as a keyboard, mouse (disposable reading device).
    • The next character is a group of three, each of which is a combination of thethree parameters of "rwx". where [R] stands for readable (read), [W] stands for writable (write), [x] stands for executable (execute). Note that the position of these three permissions does not change, and if not, the minus sign [-] is present.
        • The first group is "the rights that the file owner can have ", take "initial-setup-ks.cfg" the file as an example, change the file owner can read and write, but cannot execute;
        • The second group is " file permission to join this group";
        • The third group is " non-Self and does not have permission to join the other account of this group".
    • The second file indicates how many file names are linked to this node (I-node):
      • Each file will record his privileges and attributes in the I-node of the file system, but the directory tree we use is recorded using the file name, so each filename is linked to a i-node! This property records how many different filenames are linked to the same i-node number.
    • The third file represents the "owner account" of this file (or directory)
    • The four indicates the group to which this file belongs.
      • Under the Linux system, your account will be added to one or more groups.
    • The size of this file, the default unit is bytes;
    • The date the file was created or the last modified date:
        • The content of this file is the date (month/day) and time. If this file has been modified for too long now, then the time part will only indicate the year. As shown below

        • If you want to display the full time format, you can take advantage of the LS option, namely: "ls-l--full-time" will be able to display the full time format! Include year, month, day, time. In addition, if you originally installed your Linux system in traditional Chinese, the date stalls will be displayed in Chinese. Unfortunately, Chinese does not have the correct display in the plain text terminal mode, so this file will become garbled. Then you have to use "export Lc_all=en_us.utf8" to modify the language system .

          If you want to make the system preset language into English, then you can modify the system configuration file "/etc/locale.conf"

      • The seventh file is the file name for this file: The more special is if the file name is more than one ". ", the file is" hidden file "

Linux file properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.