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