Delete entire folder or File command instance under Linux

Source: Internet
Author: User
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

Related Article

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.