Linux System Management _ topic 02: Managing Files (1) _2.1 switching, creating, and deleting directories _cd_mkdir_rmdir

Source: Internet
Author: User

Usage: CD [directory path]

Transform working directory to make directory path, if [directory path] parameter is omitted to transform to user's home directory, where [directory path] can be absolute path or relative path

In addition, "~" in Bash represents the current user home directory, "." means the current directory "." indicates the current directory of the previous level of directory, "-" indicates the directory before the jump.

Example:

Jump to/usr/bin/: Cd/usr/bin

Fallback to previous directory: CD-

Jump to the top two of the current directory: CD. /..

Usage: mkdir [options] ... Directory...

Creates a directory if the specified directory does not exist.

? -M,--mode= mode set permission mode (similar to chmod command)

? -P creates the upper-level directory of the destination directory when required, but is not treated as an error even if these directories already exist

Usage: rmdir[options] ... Directory...

Creates a directory if the specified directory does not exist.

? -M,--mode= mode set permission mode (similar to chmod command)

? -P creates the upper-level directory of the destination directory when required, but is not treated as an error even if these directories already exist

Linux System Management _ topic 02: Managing Files (1) _2.1 switching, creating, and deleting directories _cd_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.