Find an inode of a file

Here you can find tutorials and notes for server-side maintenance/configuration

Find an inode of a file

Postby lik » Sun Dec 14, 2008 8:29 am

Find an inode of a file

In computing, an inode is a data structure on a traditional Unix-style file system such as UFS. An inode stores basic information about a regular file, directory, or other file system object.
Now in linux you want to check the inode of a file, so the command to find inode of a file is:
Code: Select all
# ls -li test.php
426137 -rw-r–r– 1 root root 0 May 05 03:14 test.php

Here, 426137 is the inode of the file test.php.

find /home/*/public_html/ -type f -maxdepth 1 -name 'backup-*' -exec ls -lh '{}' \;
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Server Side Actions


  • Related topics
    Last post