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

How to delete garbled files in centos system

王林
Release: 2020-03-21 11:31:30
Original
2315 people have browsed it

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
Copy after login

Step 2: Perform deletion

find . -inum 32983551 -exec rm {} \;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template