Linux Common Commands-01

Source: Internet
Author: User

Pwd

Function: Displays the current directory

Note: When a user logs on, the home directory is the default. The root user's home directory is/root, and the normal user's home directory is in/home/username.

Instance:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/7E/wKiom1VKNBfyPcQfAACJgL0lzMI161.jpg "title=" Pwd.jpg "alt=" Wkiom1vknbfypcqfaacjgl0lzmi161.jpg "/>

Cd

Function: Switch the directory where

Options:

~: Enter the current user's home directory,CD ~ As the role of CD ;

-: Enter the last directory;

.. : Enter the upper level directory;

. : Enter your current directory.

Instance:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/7E/wKiom1VKNhKCgPoiAAF3h4OpgYU239.jpg "title=" cd.jpg "alt=" Wkiom1vknhkcgpoiaaf3h4opgyu239.jpg "/>

Tree

Function: Displays the number of directories for all content in the specified directory

NOTES: Tree [options] Directory name

Options:

-A: Lists all the files in the specified directory, the system default option is-A;

-D: Lists only the directories under the specified directory.

Instance:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/7A/wKioL1VKO1Xgi_b7AAGMUMJi0BY049.jpg "title=" Tree.jpg "alt=" Wkiol1vko1xgi_b7aagmumji0by049.jpg "/>

Mkdir

Role: Create a directory

Note: mkdir directory name

Options:

-P: Recursively create a directory

Instance:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/7A/wKioL1VKPFqh9qlGAAD9pH-Lalg534.jpg "title=" Mkdir.jpg "alt=" Wkiol1vkpfqh9qlgaad9ph-lalg534.jpg "/>

RmDir

Role: Delete directory (only empty directory)

Note: rmdir [options] Directory name

Options:

-P: Recursively Delete empty directories

Instance:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/7A/wKioL1VKPe7igLcJAAEaOpxjNWk383.jpg "title=" Rmdir.jpg "alt=" Wkiol1vkpe7iglcjaaeaopxjnwk383.jpg "/>

This article is from the Linux OPS blog, so be sure to keep this source http://jinghsy.blog.51cto.com/7648537/1643683

Linux Common Commands-01

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.