Delete garbled files in Centos

Source: Internet
Author: User
Modify or delete garbled files in linux based on inode 1. create a test File: toutiao.com ?. Txt2. query inode: [oracle @ test] $ ll-itotal1469445217956913-rw-r -- r -- 1 oracleoinstall & nbsp

Modify or delete linux garbled files based on inode

1. create a test file:
Touch 1 ?. Txt

2. query inode:
[Oracle @ test] $ ll-I
Total 14694452
17956913-rw-r -- 1 oracle oinstall 0 Jan 18 20:24 1 ?. Txt

3. modify the Test File name:
Find.-inum 17956913-exec mv {} file.txt \;

4. check the modification results
[Oracle @ test] $ ll
Total 14694452
....
-Rw-r -- 1 oracle oinstall 0 Jan 18 20:24 file.txt

Record: you can use find.-inum 17956913-exec rm {}\ to delete garbled files {}\;

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.