Linux Delete garbled files or directories

Source: Internet
Author: User

Linux Delete garbled files or directories sometimes under Linux to extract some zip or rar files will produce garbled files or directories, this time using RM can not be successfully deleted, you need to use some special methods to delete, the following are my frequent use of the two methods. Method One: Using RM-RF Deletes the previous level of directory, of course, if you need to back up the data you need to back up. One way:1. such asfolder containing garbled files in the home2. mkdir tmp3. Move all files first to MV * tmp/4to the TMP, move all files with normal display characters out of CD tmp; MV [a-za-z0-9]* .. can now RM-RF TMP is the file can be deleted from the folder delete it ..... This is a bug under Linux ...
Method Two: Find the index node (I node) to delete # ls-Total Li dosage390441829685Drwxr-xr-x4Root root4096February9 the: . 2.11446168-rw-rw-r--1Binwen Binwen37780423February9 -: Onehtc_ common software. zip1829684Drwxr-xr-x2Root root4096January + A:xxhuiyirom_up1829688Drwxr-xr-x2Root root4096February1 A: --?+????? V1.17.022526616-rw-r--r--1Root root2140325February9 -: theInk Weather v1.17.02. zip# Find./-inum1829688-print-exec RM {}-RF \;# ls-LILs-Total Li dosage390401829685Drwxr-xr-x4Root root4096February9 the: . 2.11446168-rw-rw-r--1Binwen Binwen37780423February9 -: Onehtc_ common software. zip1829684Drwxr-xr-x2Root root4096January + A:xxhuiyirom_up2526616-rw-r--r--1Root root2140325February9 -: theInk Weather v1.17.02The . zip is visible through the above instance and has been successfully deleted.

Linux Delete garbled files or directories

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.