Linux file types and permissions

Source: Internet
Author: User
Tags file permissions

File types for Linux

    • Normal file
    • Directory Files/Folders directory
    • Equipment file Device
    1. Block Device File Block
    2. Character Device file code
    • Piping file Pipe
    • Connection File Link

In a Linux system, each user has read, write, and execute permissions on the file or directory.

different users have different access rights .

User type

    1. User owner/Master of the file
    2. The group owner of the file
    3. Other users of the system

ls-l command, displaying details of files and directories

Second line :-rw-r--r-- to the last line of drwxr-xr-x representing file types and file permissions

Total 10 bits, first bit : attribute symbol. Represents a file type

     post 9-bit : Represents file permissions. The last 9 bits, each 3 for a group , represent different permissions for the above three types of users .

R:read read; w:write write; X:excute execute;-: no permissions.

Writable and readable

Permissions Modification:

chmod command (digital setting method)

(That is, every 3 bits, has a permission of 1, no permission is 0, with a binary representation, every 3 bits into decimal)

 

chmod Digital Permission file name

chmod 777 One.txt

Picture Permission modification:

1: log in as root user

2: Go to the folder to find the picture

3: Right-click, properties, permissions, modify, OK

Above.

Linux file types and permissions

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.