# # Linux Server removes garbled files and folders

Source: Internet
Author: User

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

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.