Operating System - HP-UX
1838407 Members
3240 Online
110125 Solutions
New Discussion

same directory name and different inodes

 
SOLVED
Go to solution
Vijaya Kumar_3
Respected Contributor

same directory name and different inodes

I really dont undestand the logic behind this. same directory name is there in one directory with different inode numbers.

here is the "ls -ltri" output:

132190 drwx------ 3 sunhp sunhs 96 Nov 15 10:43 hr_staff
132173 drwxrwx--- 3 sunhpr sunhs 96 Nov 15 10:43 hr_staff

i am unable to access both directries now (not able to cd into). someone show me some light...

Thanks
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: same directory name and different inodes

Hi Vijay

Try this,

# ls -i
aaaa hr_staff
bbbb hr_staff
# find . -inum aaaa -exec mv {} hr_staff2 \;

HTH,
Robert-Jan
Siem Korteweg
Advisor

Re: same directory name and different inodes

Try ls -b to see whether the names contain characters like spaces, tabs or backspaces. When this is the case, you can use the shell wild-card '?' to rename the directories.
Vijaya Kumar_3
Respected Contributor

Re: same directory name and different inodes

Thanks Robert-Jan

I dont know how that happened. It worked fine.


Thanks again
-Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com