File permissions and directory configuration for Linux

Source: Internet
Author: User

LinuxThe file permissions and directory configuration
    1. Linux Documents, a sentence of authority is divided into users, groups and other people three kinds of identities. One of the most right-to-use features of a group is when the team develops resources. In addition, each account can have multiple groups of support

    2. Change the group of files available chgrp, modify the available Chown, modify the file permissions available chmod

  

  

  

    1. according to FHS indicates that their main purpose is to die hoping that the user can see which directory the installed software is usually placed in, FHS set out four featured catalogs, shareable,unshareable,static, variable , FHS also defines a three-tier home directory, Span lang= "en-US" >/,/var,/usr

    2. When a general document permission of rwxrwxrwx indicates that anyone can read, edit and execute, but not necessarily be able to delete, because linux The permission value of the next file Controls access to the contents of the file, and the control of the file itself is determined by the permissions of the parent directory, that is, when the user's permission to the parent file is writable, the file can be deleted

    3. linux , its configuration standard is FHS , filesystemhierarchy standard , The goal is to let users know that the installed software is usually placed in that directory. To do this, we can read the contents of the p153 page by reading the bird's private dish.

/bin: A command that can be manipulated by placing single-user mode , which is an important execution file

/ Boot: The file used to open the opportunity

/ dev: Any device or interface device exists in this directory as a file

/ etc: The configuration file of the system is almost here

/lib: Function libraries required to execute files and modules required by the kernel

/opt: Directories placed by third-party software

  

  

  

  

    1. Understand the meaning and content of/ usr

/ usr is the abbreviation for unixsoftware resourse , which is where the system's default software will be placed.

/usr/bin: Most of the users can use the command here

/usr/sbin: A command that is not normally required by the system.

/usr/share: Place to place shared files.

  

  

  

For details, please refer to Bird's private cuisine P155

    1. Absolute path and relative path

. : Represents the current directory, or it can be used ./ to represent

.. : Represents the previous level of the directory, you can also use the . / to indicate

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.