How to find inode number using “find” command

findinode

How do you find the inode number of the name of files that start with a particular keyword like "test"?

We'll assume that there are files called: test, test1, test2.

Best Answer

Try doing this (requires cygwin or such):

find . -type f -name 'test*' -printf '%p %i\n'

See

man find | less +/'-printf format'

Notes :

  • %p stands for file path
  • %i stands for inode number
Related Question