Linux Delete Folder Command instance

Source: Internet
Author: User

LinuxDelete Folder command

In the time of the use of Linux, sometimes to delete a folder, often will prompt this file is not empty, can not be deleted, this cent, must use the RM-RF command. About some small white users often in the use of Linux commands, will be very careful, so as not to make some things, the following small series will teach you how to use the Linux command to delete folders, the need to cherish.

650) this.width=650; "title=" linux Delete Folder command "Src=" http://server.zzidc.com/uploads/allimg/140506/1-140506145236151. PNG "alt=" linux Delete Folder command "style=" Border:0px;vertical-align:middle;height:auto; "/>

Linux Delete folder command instance:

Rm-rf/var/log/httpd/access

The/var/log/httpd/access directory and all files and folders under it will be deleted

650) this.width=650; "title=" linux Delete Folder command "src=" http://server.zzidc.com/uploads/allimg/140506/ 1-140506145254c2.png "alt=" linux Delete Folder command "style=" Border:0px;vertical-align:middle;height:auto; "/>

linux Delete file command instance:

Rm-f/var/log/httpd/access.log

This file will be forcibly deleted/var/log/httpd/access.log

-R is recursive down, regardless of how many levels of directory are removed

-F is directly forcibly removed, without any hint of meaning

-I is interactively deleted.

Tip: Use RM commands to be careful. As soon as the file is deleted, it cannot be restored. To avoid the onset of this condition, you can use the I option to confirm the files to be deleted individually. If the user enters Y, the file is deleted. If anything else is entered, the file will not be deleted.

Use this RM-RF to delete files must be particularly careful, Linux does not have a recycle Bin.

Original link: http://www.magedu.com/71886.html


This article is from the "Marco Linux Training" blog, so be sure to keep this source http://mageedu.blog.51cto.com/4265610/1929952

Linux Delete Folder Command instance

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.