Linux delete garbled file

  

A file was uploaded in the server before, it seems that there are times of copying or how garbled files appear, how to delete or delete, prompt no such file or directory.

ftp may not be enough permissions, not deleted many times, so use putty to delete the command.

First “cd” enter the garbled file directory, then “ls i” list the current directory file, the list is "a string of numbers + space + file name", such as the garbled folder I want to delete Find a garbled file for “295086 garbled file.doc” then “find -inum 295086 -delete”, this is ok, the garbled file has disappeared.

-inum refers to the query based on the node number; -delete as the name suggests is the delete operation. This will successfully delete the garbled file. It is worth noting that this method only works for deleting files or empty folders.

Copyright © Windows knowledge All Rights Reserved