CentOS system deletes the file name garbled file method

Source: Internet
Author: User
Tags centos

Method One, get the inode number to delete the garbled filename file by Ls-li, for example, get 123456
Perform deletes

Find./-inum 123456-exec RM-RF {}\;
Note: after "{}", empty a grid and add "\;".

Method Two, when the file name is garbled, can not enter the file name through the keyboard, so under the terminal can not directly use RM,MV command management files, each file has an I node number, you can through the I node to manage the file. First, to get the I node number of the file. This can be obtained by the-i option of the LS command.

First, delete

First step: Get the ID number of the file

Ls-li

Step two: Perform the deletion

Find. -inum 32983551-exec rm {}\;

Second, rename


Find. -inum 32983542-exec mv {} test.php\;

Related Article

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.