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 '{}' \;