The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [hard-link]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
129
votes
4answers
170k views

Why are hard links not allowed for directories?

I am using Ubuntu 12.04. When I try to create a hard link for any directory, it fails. I can create hard links for files inside file system boundary. I know the reason why we cannot create hardlinks ...
52
votes
5answers
9k views

Are hard links equivalent to Windows shortcuts?

Wikipedia defines a hard link as: a directory entry that associates a name with a file on a file system. (A directory is itself a special kind of file that contains a list of such entries.) The ...
2
votes
5answers
699 views

Why not design having the softlink (symlink) and hardlink in the same “link”?

I haven't used hardlinks for a long time and never really needed them until I was asked in an interview. I read their difference from symlinks here: What is the difference between a hard link and a ...
2
votes
0answers
28 views

Show full-path for links [duplicate]

The real path for the folder TEMP DESK is: /home/username/Desktop/Dropbox/mystuff/TEMP DESK But when I click on the link that I created for it, it shows: /home/username/Desktop/Link to TEMP ...
4
votes
2answers
4k views

Does dropbox sync hardlinks?

I have a folder of large files. I want that folder to be in two different places at once - my Home documents, and my College documents folder. I've done this with a symlink in the College folder to ...
2
votes
1answer
198 views

Make link open target file, not file at link location

Sorry for the tags. I don't know whih one applies. Please remove not pertaining ones, then delete this line. Or comment, and I'll do it myself. Background I want to put a link to a file located in /...
2
votes
1answer
1k views

why does directory contain 2 hard links

When I create a new directory it contain 2 hard links and when I go inside to the new directory it contain two directories (. and ..) . has hard link count 2 and .. has hard link count 3, but I learn ...