Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delete garbled files in Linux system

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "Linux system how to delete garbled files", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Linux system how to delete garbled files" this article.

Uploading files, creating directories or files in the Linux system may cause garbled files or directories due to coding reasons. Using the rm command can not delete garbled files at this time, but you can delete garbled files or directories with the find command.

First go to the directory where the garbled file or directory is located

Use the ls-I command to find the inode of a file or directory

The numeric string in front of a file or directory is inode

Next, use the find command to query and delete this file or directory

Note: this method applies only to deleting files or empty folders.

How to delete a non-empty folder?

First of all, check inode first.

Then use the following command:

Find-inum 2236429-exec rm-rf {}\; prompts that the file or folder cannot be found, but has actually been deleted.

The above is all the contents of the article "how to delete garbled files in Linux system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 261

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report