Linux Directory Management

Source: Internet
Author: User

1. Special Catalogue

. Represents the current directory

.. Represents a previous level directory

-Represents the previous working directory (the directory in which the current directory was before it was entered)

~ Represents the home folder where the current user resides

~account represents the home folder of the account user

2. Working with directory common commands

CD (change directory): Switch directories, enter CD only to represent CD ~

PWD (pring working directory): Displays the current directory, Pwd-p displays the correct directory name instead of displaying it as a link file, eg cd/var/mail

[Email Protected]:/var/mail $ pwd-p
/var/spool/mail
[Email Protected]:/var/mail $ pwd
/var/mail

mkdir: Set permissions when new directory-M new directory,-p recursively create multilevel directory

RmDir: Delete Empty directory-P along with upper empty directory

3. Execute File Path variable $path

A. Different identity users default path, the default can be arbitrary execution of the command is also different

B.path can be modified

C. A command under a nondefault path can be executed by specifying the file name of a command directly with an absolute or relative path.

D. Commands should be placed in the correct directory, the implementation will be more convenient

E. Current directory (.) Better not put it in path.

Linux Directory Management

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.