As I understand it, each file on a Unix-like operating system has an inode number (which can be viewed with "ls -i"), and each inode is a list of disk blocks that contain the actual data of a file.
Is there a Linux command which takes a filename as its argument and prints out the list of disk blocks that that file's inode points to?
P.S. The filesystem in question is ext3.
Best Answer
You could use the "debugfs" tool to view file info on the command line or interactivley. either use:
or
for example: