Linux Tip: ls with inode number

The common ‘ls’ command will allow you to display the inode numbers associated with each file in the directory. All that’s needed is supplying the ‘-i’ option.

> ls -i

26610614 file1.txt  26610615 file2.jpg  26610616 file3.html

It will display the inode number right next to the file.

Post navigation


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>