1. Linux Delete Folder command
When using Linux, sometimes to delete a folder, will often prompt this file is not empty, can not be deleted, this time, you must use the RM-RF command.
2. Linux Delete folder instance:
Rm-rf/var/log/httpd/access
The/var/log/httpd/access directory and all files and folders under it will be deleted
3, Linux Delete file instance:rm-f/var/log/httpd/access.log
This file will be forcibly deleted/var/log/httpd/access.log
-R is recursive down, no matter how many levels of directory, delete
-F is directly forcibly deleted, without any hint of meaning
-I is interactively deleted.
tip : Use RM commands with caution. Because once the file is deleted, it cannot be restored. To prevent this from happening, you can use the I option to confirm the files you want to delete individually. If the user enters Y, the file is deleted. If you enter anything else, the file is not deleted.
Use this rm-rf to remove files with extreme caution, Linux does not have a recycle Bin.
Original title: Delete entire folder or File command instance under Linux
Original address: http://www.abcde.cn/info/show-24-1338-1.html
Copyright belongs to the network era, reproduced please indicate the source
Delete entire folder or File command instance under Linux