1837224 Members
2399 Online
110115 Solutions
New Discussion

Inode Number

 
Ralf Buchhold
Regular Advisor

Inode Number

Hello
can I get the file-name when I have the inode-number ?
Thanks
Ralf
4 REPLIES 4
Marcel Boogert_1
Trusted Contributor

Re: Inode Number

Hi there,

ls -i | grep

MB.

Jean-Luc Oudart
Honored Contributor

Re: Inode Number

If not in current directory :

find . -inum -print

Regards
Jean-Luc
fiat lux
Baz_2
Occasional Advisor

Re: Inode Number

Remember that inodes are unique within a filesystem only, so be careful when using find.
Sridhar Bhaskarla
Honored Contributor

Re: Inode Number

Hi Ralph,

The command 'ncheck' prints the inodes and the corresponding filenames.

ncheck /dev/vgxx/lvolx |grep

Can take a long time depending on the number of files you have in that filesystem. 'find' is ofcourse better.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try