"Linux notes (001)"--CENTOS7 system directory structure and files

Source: Internet
Author: User
Tags temporary file storage

I. Directory structure and use:

/boot: System boot file, kernel

/bin: basic Commands for users

/dev: Device files

/etc: Configuration file

/home: User Directory

/root:root User Directory

/sbin: Basic commands for managing classes

/tmp: Temporary file storage location

/usr: Shared read-only data

/MNT: Temporary file system mount point

/media: Mobile device mount point

/OPT: Where to install third-party applications

/SRV: Data used by the system to run the service

/var: Changing Data files

/proc: A virtual file system for outputting kernel-related process information

/sys: Virtual file system for outputting information about hardware devices on the current system

Ii.. File type:

-: Normal file

D: Catalog file

B: Block device files

C: Character device

L: Symbolic Link

P: Piping

S:socket file

Third, file permissions

R:read; If it is a file, have permission to read the contents of the file, and if it is a directory, have permission to browse the directory.

W:write; If it is a file, has the right to add, modify, delete the contents of the file, if it is a directory, have new, delete, modify, move files within the directory permissions.

X:execute; If the file has permission to execute the file, and if it is a directory, the user has permission to enter the directory.

1. Read-only access to the directory does not allow the CD to enter the directory, you must have execute permissions to access it.

2, only the execution permission can only enter the directory, you can not see the contents of the directory, to see the directory of the file name and directory name, you need to read permissions.

3, a file can be deleted, mainly to see if the file is located in the directory to the user has write permissions, if the directory does not have write permission to the user, then all files in the directory can not be deleted, except for the file owner

4, the directory W bit is not set, even if you have a file in the directory W permissions can not write the file

Mask

2017-09-29 14:44 Friday

Linux Notes (001)--CENTOS7 system directory structure and files

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.