Tagged Questions
3
votes
1answer
60 views
How can I delete a hardlink to a directory?
Before I get 100s of answers that tell me it is impossible to hardlink directories in linux: yes, I know that.
The file in question appeared in lost+fount after I checked the filesystem with e2fsck ...
1
vote
1answer
83 views
How do I manually modify an inode?
I am using Ubuntu Linux and, just for fun, I want to create a hardlink to a directory (as seen here). Because I'm just doing this for fun, I'm not looking for any sort of pre-developed ...
3
votes
1answer
113 views
Can we use symbolic link and hard link for directories?
I know we can do that for files. What about directories?
It seems that cpanel uses that a lot.
12
votes
1answer
332 views
How to find all the links to a directory
When I stat a directory I get a listing that tell me there are 5 links to the directory.
stat dir
My question is how do I get information (names and locations) to all these 5 links?
26
votes
2answers
838 views
Why is '.' a hard link in Unix?
I've seen many explanations for why the link count for an empty directory in Unix based OSes is 2 instead of 1. They all say that it's because of the '.' directory, which every directory has pointing ...
29
votes
2answers
7k views
Why hard links not allowed to directories in UNIX/Linux
I read in text books that UNIX/Linux doesn't allows hard links to directories but soft links do. Is it because, when we have cycles and if we create hardlinks, and after some time we delete the ...