because of the general trend of PHP, there are more and more opportunities to access Linux servers. Unlike Windows servers, Linux servers only support characters such as numbers, English, and no way to
identification. so that caused us to pack the uploaded files after extracting the Chinese garbled files and folders. There are many solutions on the Internet, but today's pro-test with the Find command can quickly delete garbled files and
folders, so share with you.
Method 1
Home page into the folder where garbled files
To find the node number of a file or folder using the Ls-i command
The front is the node number, then use the Find command to query and delete
-inum refers to the query according to the node number;-delete is the delete operation as the name implies. This will successfully delete garbled files, It is worth noting that this method only applies to delete files or empty folders.
Method 2
Use the combination of CP, MV and RM * To remove all garbled files indirectly.
First, copy the other non-garbled files to the other directory.
After that, delete all the files in the directory.
Finally, move the copied files back to the original directory.
Scope of application:
Method 1: Delete a single file, or delete the garbled name file individually.
Method 2: Apply to garbled files, but also need to delete all the situation.
# # Linux Server removes garbled files and folders