Linux inode Delete File

Source: Internet
Author: User
Tags access properties

Find. -inum 918557-exec rm-i {} \;


View inode information for files in Linux 2011-03-14 21:26:25

Category: Linux

Roughly four methods:

Executes the stat command directly, with the file name as the parameter.

Perform the stat command in Debugfs with the file name as the parameter.

Perform the Mi command in Debugfs, with the inode number as parameter, and note that the-w option is appended when DEBUGFS is executed.

Locate the inode, and then export it as a DD command.

The next two methods get complete inode information, and the first two are incomplete.



Find if all files in the directory contain a string

Find. | Xargs Grep-ri "IBM"

Finds all files in the directory that contain a string, and prints only the file name

Find. | Xargs Grep-ri "IBM"-l


LS has some parameters:

-a displays all files, including point files, which are hidden files.

-l display file details, including file size, access properties, creation time, number of connections, etc.

-I displays its inode number


Linux inode Delete File

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.