Linux Common commands

Source: Internet
Author: User
Tags file permissions

1. Sync write to disk

2, Chgrp-r Modify the directory or file and its subdirectories and the group belonging to the file

3, Chown-r Modify the directory or file and its subdirectories and the owner of the file

4, Chmod-r 4+2+1 Modify Permissions

For files:

R:4 has read file content permissions

W:2 with Add/query/modify/file content permissions

X:1 with Execute file permissions

For directory:

R:4 with directory or file permissions under the LS directory

W:2 has a new file or directory under the directory, a file or subdirectory in the deleted directory (regardless of subdirectory or file permissions), modifies the name of the file or directory under the directory, moves the directory or the file location

5, Ls-al ~ Show All files in the current directory, including hidden files

6, Ls-l/lib/modules/$ (uname-r)/kernel/fs View system supported file system

7, df-h check Filessystem Overall use of the situation

Df-af

Df-ih

8, RPM-Q software name to see if the software is installed

Linux Common commands

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.