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
Rename the file by Inode number.
[[email protected] ~]$ find . -inum 1701841 -exec mv {} Myfile \;
Thanks.
Find directories by his Inode numbers
Related posts
- Multi IP Ping Host Table March 27, 2018
Leave a Reply Cancel Reply
Latest Posts
- Modifies files date and times May 4, 2018
- Track Your Linux Login & Logout April 12, 2018
- Linux Tasks Alert April 12, 2018
Comments
Johny Jackson
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