Find directories by his Inode numbers

Check any files which have no any name or detail by default.
Like: DOT and Double DOT or Unprintable characters.

For this use command
[[email protected] linux]$ ll -ail
Output is..
[[email protected] linux]$ ll -ail
total 8
1701838 drwxrwxr-x 2 LinuxMunch LinuxMunch 4096 Aug 19 15:53 .
1701833 drwx—— 3 LinuxMunch LinuxMunch 4096 Aug 19 15:53 ..
1701839 -rw-rw-r– 1 LinuxMunch LinuxMunch 0 Aug 19 15:53 a
1701840 -rw-rw-r– 1 LinuxMunch LinuxMunch 0 Aug 19 15:53 b
1701841 -rw-rw-r– 1 LinuxMunch LinuxMunch 0 Aug 19 15:53 c

The ‘-i‘ option in ls provided the inode of the directory.
We then were able to move the directory to another name so we could see what was in it using
a find command:
Example: Lets find the file “C” by its Inode.
[[email protected] ~]$ find . -inum 1701841
Find
Rename the file by Inode number.
[[email protected] ~]$ find . -inum 1701841 -exec mv {} Myfile \;
Thanks.

1 comments
0 likes
Prev post: Kill Linux idle usersNext post: Keep your tar file in compress state

Related posts

Comments

  • Johny Jackson

    January 21, 2018 at 4:06 am
    Reply

    Thanks for ones marvelous posting! I truly enjoyed reading it, you will be a great author. I will ensure that I bookmark your blog and will […] Read MoreThanks for ones marvelous posting! I truly enjoyed reading it, you will be a great author. I will ensure that I bookmark your blog and will come back someday. I want to encourage you to continue your great posts, have a nice evening! Read Less

Leave a Reply

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

Aidbs Gallery
Latest Posts
Categories
Archives