2018-01-08 Linux Directory Management class commands

Source: Internet
Author: User
cd, pwd, ls

mkdir, rmdir, tree

mkdir [Options]/path/to/somewhere
-P: exists in no error, and can automatically create the required directories;
-V: Show more information
-M MODE: Specify permissions directly when creating a directory;

Tree
-D: Show only directories
-L Level: Specifies the number of levels to display
-P Pattern: Displays only the path that is matched by the specified pattern;

RmDir: Delete Empty directory
rmdir [OPTION] ... DIRECTORY ...
-V: Display process;

Practice:
(1) How to create/tmp/x/y1,/tmp/x/y2,/tmp/x/y1/a,/tmp/x/y1/b,/tmp/x/y2/a,/tmp/x/y2/b
MKDIR/TMP/X/{Y1,Y2}/{A,B}

(2) How to create X_m, Y_m, X_n, yN
mkdir {x, y}
{m,n}

(3) How to create/tmp/bin,/tmp/sbin,/tmp/usr,/tmp/usr/bin,/tmp/usr/sbin
Mkdir-p/tmp/{bin,sbin,usr/{bin,sbin}}

2018-01-08 Linux Directory Management class 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.