LIUNX Basic Operations Directory Class commands: CD, ls, pwd, mkdir, rmdir

Source: Internet
Author: User

1, the CD command is a command to enter a directory

Usage Example: cd/etc//Enter the ETC Directory CD ~//return to the root directory CD. Return to Parent Directory

Note: the current position in etc under the sub-directory to enter etc can not add "/" such as Cd/etc cd/x11

This will not enter the/ETC/X11 directory.


2, ls command view all elements under the current directory ll command will be displayed in the list


3. PWD command to view the current location for example, I typed the pwd command in the/ETC/X11 directory the return value is

/etc/x11


4. mkdir command Create directory command to create directory directly in the current directory mkdir xxx

Create a directory at the specified location mkdir/xxx/xxx/xxx


5, rmdir command to delete folders and mkdir the same way to use

LIUNX Basic Operations Directory Class commands: CD, ls, pwd, mkdir, rmdir

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.