Use of the deltree command

Source: Internet
Author: User

You remember the RD command? When you use the RD command to delete a directory, you first delete the files in the directory, and if there are subdirectories in the directory, you need to go into this directory and use the RD command to delete the directory. If there are further subdirectories and files under the subdirectory, it is necessary to repeat the above work, it can be imagined that when the number of directory layers, the deletion will be quite troublesome. This DOS provides a quick delete directory command--deltree, which is deleted at once, regardless of the number of subdirectories and files under the directory.

We can try, for example, there is a directory ABC need to delete, take deltree this machete to try. Enter deltree ABC, when the computer will ask you if you really want to delete, type Y, the directory is deleted.

The deltree command does make it easy to delete a directory, but if the loss is significant after a mistake, make sure that the files in each subdirectory are useless before using the deltree command. For beginners, it is advisable to use this command with caution.

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.