Linux Primary shipping Koriyuki Directory Management Command (LS,CD,PWD,MKDIR)

Source: Internet
Author: User
Tags parent directory

ls command:-list directory contents

Command Description: List Directory contents

Common Command Options

-L: Use a list of detailed formats.

-A: Lists all files and directories (used to display hidden files that begin with.).

-A: Displays all files and directories but does not include. and. (. = Current directory ... Represents a parent directory).

-H: Do unit conversions (convert bytes into readable b-->kb)

-D: Display the directory's own properties

-I: Displays the miniature node number of the file (preached throughout, all files are mounted on a tree with root tree nodes, each file has a miniature node number)

-R: Show files in reverse order

-R: Recursive display (display directory under directory of ... File

Example: LS/

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9E/4B/wKiom1mNj4azrU0PAAAp7_0CL_Y304.jpg "title=" Qq20170811190508.jpg "alt=" Wkiom1mnj4azru0paaap7_0cl_y304.jpg "/>

/: Indicates root directory


cd command:-change diretory

Command Description: Change the current directory

Example: CD/

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9E/4B/wKiom1mNoGeS3PhYAAAjl5Auk6A566.jpg "title=" cd Command Example "alt=" Wkiom1mnoges3phyaaajl5auk6a566.jpg "/>

command to switch the current directory from ~ to/directory


PWD command: Print name of current directory.

Command Description: Prints the full path of the current directory

Example:

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9E/3A/wKioL1mNoe6jqsoKAAAsTDqZwMM832.jpg "title=" Pwd.jpg "alt=" Wkiol1mnoe6jqsokaaastdqzwmm832.jpg "/>

mkdir command: Make directories

Command description: Create an empty directory (by default only the last point on the path is the path we want to create)

-P: Recursively create a directory to the last point

-V: View (when the command executes) details

-m< Directory properties > or--mode< Directory properties > set directory permissions at the same time when the directory is established.

Example:

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9E/3A/wKioL1mNpJ3RM0dlAACpH8ojpQw004.jpg "title=" mkdir Command Example "alt=" Wkiol1mnpj3rm0dlaacph8ojpqw004.jpg "/>

Linux Primary shipping Koriyuki Directory Management Command (LS,CD,PWD,MKDIR)

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.