Home  >  Article  >  Operation and Maintenance  >  How to delete garbled files in centos system

How to delete garbled files in centos system

王林
王林Original
2020-03-21 11:31:302310browse

How to delete garbled files in centos system

When the file name is garbled, the file name cannot be entered through the keyboard, so you cannot directly use rm, mv and other commands to manage files in the terminal.

How to delete garbled files in centos system

But each file has an i-node number, and the file can be managed through the i-node number. First, we need to obtain the i-node number of the file. This can be obtained through the -i option of the ls command.

(Recommended tutorial: centos usage tutorial)

How to delete garbled files:

Step one: Get the id number of the file

ls -li

Step 2: Perform deletion

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

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to delete garbled files in centos system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn