Commands for common file operations in cmd

Source: Internet
Author: User

 

1. Enter the drive letter such as C: And press enter, which is equivalent to drive C (drive C is generally in the desktop directory)

 

2. Enter the CD directory name and press enter (the directory name is the first-level directory name in drive C, or the directory path in drive C ). For example, CD mm is used to enter the MM folder.

(If you want to open a file, you do not need CD)

 

3. If you want to return to the upper-level directory, simply enter CD.... You can return to the upper-level directory. These are the most common commands in the development process.

 

4. Run the Dir command to view the file list in the directory and view all the files in the directory:
DIR/*

5. The attrib command is used to change the file attributes and remove the hidden attributes of all files (folders) in the directory:
Attrib-H */S/D

6. copy the file command to copy all the files in the directory to the D Disk:
Copy * "D :\"
Xcopy command for copying folders. Command Format:
Xcopy/e/h/y "original folder path" "current folder path"

7. PS: in cmd, if you do not know which command is used, add a/after the command /? You can view the usage, such as copy /? You can view the usage of the Copy command ..

Commands for common file operations in cmd

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.