MAC OS x Common Commands Summary 2

Source: Internet
Author: User


1. Dir: Displays subdirectories and files under a directory.

Format: dir [x:] [Path] [filename][parameter]

Parameter explanation:

/a displays all folders and files.

/p pagination display.

/w Displays the list in a wide format.

/q Displays file ownership information.

2. Tree: Displays the directory structure in the form of trees.

Format: Tree [X:][path][parameter]

Parameter explanation:

/a specifies that the tree displays the rows of the linked subdirectory using characters rather than graphic characters

/F Displays the file names in each directory

3. CD: Enter or exit the directory

Format: CD [[/d][x:][path][.]]

Parameter explanation:

.. Go to the top level directory

/d quickly change the current directory

/? Display Help information in the command prompt

\ go back to the root directory

4. MD: Create a directory

Format: MD [X:]path

5. RD: Delete subdirectories from a specified location

Format: RD [x:]path[/s][/q]

Parameter explanation:

/s deletes the specified directory and all directories and files for the specified directory.

/q Delete the directory without confirmation.

6. Path: Set the search path for the executable file

Format: path [[%path%][x:]path[;] ......]

; Separating directories in the command path

%path% Specifies that Windows XP adds a command path to an existing catalog set listed in the PATH environment variable.

7. Xcpoy: Copy all folders and files under directories and directories to the specified directory location.

Format: xcopy source [destination][/s][/e][/v]

Parameter explanation:

/s copies non-empty files.

/V validates each file when it is written to the destination file.

/E to copy even if the subdirectory is empty

8. ren: Renaming a directory

Format: ren [x:][path]filename1 filename2

Parameter explanation:

[x:] [PATH]FILENAME1 Specifies the location and name of the folder or file to be renamed

Filename2 new file name specified when renaming files

MAC OS x Common Commands Summary 2

Related Article

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.