ls uses the stat structure to provide this information via ls -i. Therefore, it should be available via any programming language whose stat implementation passes this information through:
$ ls -i .bashrc18731977 .bashrc$ python>>> import os>>> s = os.stat('.bashrc')>>> s.st_ino18731977


You must be logged in to post a comment.