delete linux garbled files

I encountered some garbled files on the server today. I used the SSH Secure File Transfer Client (SSH Secure File Transfer Client) to delete them. Later, I heard Xiong said that I can use the inode node method, so I googled and found the following method. Not bad. .
 
  When the file name is garbled, the file name cannot be entered through the keyboard, so commands such as rm and mv cannot be used to manage files directly under the terminal.
But we know that each file has an inode number, we can consider managing files by inode number. First, we need to get the inode number of the file. This can be obtained with the -i option of the ls command, or with ll -i.
In the second step, use the find command to pass the filename to the rm command. eg: To delete the garbled folder whose node is 12345, you can use the following command
find ./ -inum 12345 -print -exec rm {} -rf \;
Note that the space in front of \; cannot be less, otherwise an error will be reported.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326791067&siteId=291194637