Properties and directories of the Linux Basic Learning document

Source: Internet
Author: User
Tags file permissions

Use the command Ls-al to list all the current files, and the various cases of the file.

The first block is the file attribute: Altogether 10, the first represents the file type {d: directory,-: file, L: Connection file, B: Interface device, C: Serial port Device}, followed by three groups, first group: Owner's permissions, second group: permissions for the same group, Third group: Other people non-group permissions (rwx for read and write execution) if there is not an X attribute, you cannot enter the view

The second block is the node occupied by the connection: if it is a directory, it is related to how many directories are in that directory

The third block is the owner of the file.

Group Four for the owner

The fifth block is the file capacity size

The sixth block file file date/modification date

The seventh block is the file name (there is a point in front of the file name is the hidden directory)

Change file permissions:

CHGRP: Change the group to which the file belongs

Chown: Change file Owner

chmod: Change the properties of the file, suid

RWD 4 2 1 777 The delegate gave all the permissions.

Using the symbol u/o/g +/-/= rwx A represents any (anyone),

Cat Reads archive content

File type:

Regular file:-Text binary data

Catalog Archives: D

Connection file: L like a shortcut under Windows???

Device and device files: B: Block device file C: Character device file system peripheral and storage related files

Data interface file: S is also known as the data interface file

Data transfer file: P

File attachment name: Similar to Windows file extension, but because the Linux file can be executed to see attribute x, regardless of the document file name, with the documentation file name to see the attendance of the document

Directory configuration: Standard FHS for directory configuration

Absolute path:/start

Relative path: Except absolute path is relative path

.. /delegate back to previous level directory

  

Properties and directories of the Linux Basic Learning document

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.