[BSD-INDIA] reading inode contents
Siju George
sgeorge.ml at gmail.com
Thu Oct 1 08:42:55 UTC 2009
On Wed, Sep 30, 2009 at 9:05 PM, Arun Sharma <arun at sharma-home.net> wrote:
> On Tue, Sep 29, 2009 at 11:04 PM, Siju George <sgeorge.ml at gmail.com> wrote:
>>
>> Hi,
>>
>> How is it possible for me to read the contents on i-nodes in a file
>> system?
>
> Why not use cat? :)
> On FreeBSD 8.0-RC1
> # stat -f %i httpd.conf
> 688686
> Instead of using some command that dumps inode 688686, I might as well use
> cat on httpd.conf. Of course this doesn't work for inodes that are not
> linked to any file.
>
Thanks Aditya and Arun for the replies :-)
Cat gives the content of the file right?
What I want to do is see the contents of the inodes. i.e to which
diskblocks they point to.
Thanks again
--Siju
More information about the bsd-india
mailing list