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:
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.
This is the output of ls -d *
This is the output of ls -ld
Before I delete the suspicious one by specifying the inode with the find command I wanted to CD into it to see if there is anything interesting. But I can not find a way to CD into a directory by specifying just the inode instead of the filename.
Has anyone ever experienced having two same directory in the same location before?
Hello All,
I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows,
/boot - Linux Partition & another is
LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc).
Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Hi,
I'm running a RHEL6 machine on a VMWare platform and I have somehow created a duplicate /home directory. See below.
# pwd
/home/home/twood
# ls
Desktop Documents Downloads Music Pictures Public Templates Videos
#
I am currently working on some disk quota procedures and I... (2 Replies)
Hi all,
I've been working on a script to run a disk wipe (using Jim Garlick's scrub tool) on the filesystem in Xerox production printer RIPs.
Easy enough if there's just one partition, but I need to cater for the possibility of multiple drives/partitions, and either ZFS or UFS (don't know if... (2 Replies)
hi all
while formatting hard disk i am getting following error.
Partition 1 ends at 266338338
It must be between 34 and 143374704.
label error: EFI Labels do not support overlapping partitions
Partition 8 overlaps partition 1.
Warning: error writing EFI.
Label failed.
I have formatted the... (2 Replies)
Hi all.
Am doing continuous backup of mailboxes using rsync.
So whenever a new mail arrives it is automatically copied on backup server.
When a new mail arrives it is named as xyz:2, when it is read by the email client an S is appended xyz:2,S
Eventually , 2 copies of the same file exist on... (7 Replies)
Hello everyone,
I have been struggling to clean up a back-up mess I created when manually duplicating a directory structure and then working in both of them..
The structures now are significantly different and contain in the order of 15 k files of which most are duplicates.
Now I am trying to... (0 Replies)
I need help with a script which accepts one argument and goes through all the files under a directory and prints a list of possible duplicate files As its output, it prints zero or more lines, each one containing a space-separated list of filenames. All the files listed on one line have the same... (1 Reply)
I've created a partition with GNU Parted, how do I mount the partition?
The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards.
Thanks,
--Todd (1 Reply)
Hi ppl.
I have to check for duplicate files in a directory .
the directory has following files
/the/folder /containing/the/file
a1.yyyymmddhhmmss
a1.yyyyMMddhhmmss
b1.yyyymmddhhmmss
b2.yyyymmddhhmmss
c.yyyymmddhhmmss
d.yyyymmddhhmmss
d.yyyymmddhhmmss
where the date time stamp can be... (1 Reply)