I need to write a program in C/C++ that request the user to put in an inode number and then return all of the inode header fields and information back. I am not familiar with linux systems and commands at all. I have found some commands and tried different things that didnt work like I needed.
find -inum inodenumber
will give me the path to the file that contains the specified number. All the information I need comes from istat (according to my research) but I cant get it to work. Im doing
istat FILENAME.jpg
I get the response:
Missing image name and/or address usage: istat[-B num] [-f fstype] [-i ingtype] [-b dev_sector_size] [-o imgoffset] [-z zone] [-s seconds] [ivV] image inum ...
What do I need to do?