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