LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   symlink with same name as that of source (https://www.linuxquestions.org/questions/linux-newbie-8/symlink-with-same-name-as-that-of-source-4175553854/)

Rohit_4739 09-18-2015 06:04 AM

symlink with same name as that of source
 
Hi,

While this may be very noob question but somehow i cant figure out how to do it.

I have a directory /extras/test; and i want to create a symlink to this directory under /extras with name 'test' as the symlink name. I have seen similar thing on one of our servers so just got curious that how was that even possible..

So anyone any idea please.

smallpond 09-18-2015 06:27 AM

You can't have two entries in a directory with the same name in any file system that I know of.

Rohit_4739 09-18-2015 07:55 AM

Quote:

Originally Posted by smallpond (Post 5422189)
You can't have two entries in a directory with the same name in any file system that I know of.

Even i know that, but i have seen this on an AIX server so i was very much confused on how that was even possible.

jpollard 09-19-2015 04:18 PM

Even on AIX you can't do that.

I bet there was a blank in the file name though - that would allow it to appear to be the same when it really isn't.


All times are GMT -5. The time now is 11:11 PM.