- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: two directory with the same name
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2005 09:24 PM
тАО09-05-2005 09:24 PM
Re: two directory with the same name
Robert-Jan Goosens.
I think -xdev option is very important to be used:
# cd /
# find . -xdev -inum 2365 -exec mv {} /tmp/vikas \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 10:51 AM
тАО09-06-2005 10:51 AM
Re: two directory with the same name
You can try ,
1.# ls -i | grep pam
[ not down the inode nos. of both.]
# ls -b | grep pam [ You may find any diff ]
If no difference , then proceed to 2.
2. Check both the dir , as per inode :
# find . -type d -xdev -inum xxx -print
# find . -type d -xdev -inum yyy -print
[ xxx and yyy are the indoe number of the two dir. ]
[ Any difference ! ]
3. You can compare the size also , to make sure they are really exists and you can move or delete :
#find . -type d -xdev -inum xxx -exec du -sk {} \;
#find . -type d -xdev -inum yyy -exec du -sk {} \;
And then you can move using mv with find.
Hope this will help ,
Cheers,
Raj.D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 04:21 PM
тАО09-06-2005 04:21 PM
Re: two directory with the same name
Thanks for replying , Today i am going to customer place & from there i will send u output of all the commands u ppls are asking.
When customer has reported this problem to me that time i also suggested him all these things & once i reached at customer site, i found this is just a secound dummy name u can noy move , delete or copy this directory , But when u give ls u will find it.
Any how will get back to all u ppls with output of these commands .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 07:11 PM
тАО09-06-2005 07:11 PM
Re: two directory with the same name
Find command with inum works fine & i deleted that directory successfully ,
Thanks all for your replies ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 07:13 PM
тАО09-06-2005 07:13 PM
Re: two directory with the same name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2005 02:23 AM
тАО09-07-2005 02:23 AM
Re: two directory with the same name
Nice to know that with find and inum you can able to delete it . Cheers.
Also found that you have given 1 points to each , initially I thought it is 10 , but found 0 is vanished.
Giving 1 point each , it seems that you have not got any help from this thread , and may be not happy.
Cheers,
Raj.D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2005 04:14 PM
тАО09-07-2005 04:14 PM
Re: two directory with the same name
I am sorry for that, this was my first chance to give points, I have given one point to each one who replied & i was planning to add points to those ppls who's solution works for me, but after that site has not allowed me to change the already assigned points. Hope u understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2005 05:36 PM
тАО09-07-2005 05:36 PM
Re: two directory with the same name
You are most welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2005 02:04 AM
тАО09-08-2005 02:04 AM
Re: two directory with the same name
Keep your queries posted ,
Enjoy and Have fun.
HTH.
Raj.D
- « Previous
-
- 1
- 2
- Next »