ls -li
ファイルのinode番号を表示するために実行できますが、そのinode番号を使用して特定のinode内の情報を一覧表示できますか?
ベストアンサー1
debugfs
ext2/3/4ファイルシステムがある場合は、inodeを低レベルで表示するために使用できます。たとえば、ルートではなくてもプレイできます。
$ truncate -s 1M myfile
$ mkfs.ext2 -F myfile
$ debugfs -w myfile
debugfs: stat <2>
Inode: 2 Type: directory Mode: 0755 Flags: 0x0
Generation: 0 Version: 0x00000000
User: 0 Group: 0 Size: 1024
File ACL: 0 Directory ACL: 0
Links: 3 Blockcount: 2
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x5722081d -- Thu Apr 28 14:54:53 2016
atime: 0x5722081d -- Thu Apr 28 14:54:53 2016
mtime: 0x5722081d -- Thu Apr 28 14:54:53 2016
BLOCKS:
(0):24
TOTAL: 1
このコマンドはstat
内部でinode番号を使用します<>
。