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