Learn about linux user-file-permission operations

Source: Internet
Author: User
Learn linux user-file-permission operation add gropuadd user group name modify groupmod user group name delete groupdel user group name add user add useradd user name set password passwd password delete userdel user name modify usermod user name query... learn linux user-file-permission operation add gropuadd user group name modify groupmod user group name delete groupdel user group name add user add useradd user name set password passwd password delete userdel user name change usermod user name view file cat: view tac from the beginning: View from the end more: view the file from the beginning, display less in segments: view the file content head-n File name: view the first few lines of the file, n is a digital tail-n File name: view the last few lines of the file, n is a digital search file find Directory-name file name (you can also write the regular expression: 1. *) file permission u: Owner g: Group o: Other r: Read 4 w: write 2x: execute 1 chmod set attribute filechmod u = rwx, g = rx, o = x file indicates that the file has the permission to read, write, and execute the file on the group, for other settings that have executable permissions on chmod 751 file, you can also write them to add their values together.
Related Article

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.