The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Delete duplicate files from one of two directory structures procreator UNIX for Dummies Questions & Answers 0 10-15-2009 11:33 AM
Mac OS X 10.5: Duplicate computer name alert when binding to Open Directory iBot OS X Support RSS 0 12-15-2008 02:10 PM
script that detects duplicate files in directory trueman82 Shell Programming and Scripting 1 12-04-2006 11:58 AM
remove duplicate files in a directory asinha63 Shell Programming and Scripting 1 03-13-2006 03:46 PM
understanding logical partition, physical partition yls177 UNIX for Dummies Questions & Answers 3 11-15-2002 10:49 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-22-2009
maiku09 maiku09 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 5
Duplicate directory in same partition help.

Hi,

I have found a directory on my web server that have 2 same directory names in the same location on the same partition. Is there a way to mkdir a name twice and be able to see them both in the same location?

Heres an example of the ouput:

Code:
[root]# ls
access_log.1.bkup       access_log.1.bkup.2.gz  data         public_html 
access_log.1.bkup.1.gz  access_log.1.bkup.3.gz  public_html
Unix forbids the same file name under the same directory. How could this be possible?

As you can see there are two public_html directories and they both have two different inode numbers but when you cd into public_html which one would you end up in?
Is there some way to know which one is the suspicious one? I would like to delete the suspicious public_htm. I believe an unauthorized access has created this duplicate and doing something malicious.

I have use the command find . -inum 293843 | xargs cd to try to change directory to the one I thought was suspicious but I get an error message saying directory doesn't exist. And the same error message for the other directories by trying to CD into a directory by specifying the inode instead of the file name.

Any help and ideas would be appreciated!

I need to cd into a directory by specifying the inode number and not the file name.
I would aslo like to know the possibility of creating two same name folders under same directory.

Best Regards,[COLOR="#738fbf"]

Last edited by maiku09; 10-23-2009 at 02:10 PM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0