• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

how to get the inode

how do i read theinode of a file in c in the linux enviroment and ideas
i also wantto be able to display this
0
kplonk
Asked:
kplonk
1 Solution
 
rbrCommented:
man stat

struct stat buf;

stat ("Filename",&buf);

printf ("Inode: %ld",(long)buf.st_ino);
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now