The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
1answer
15 views

Default number of links for directory?

I know that hard link can not point to directories but when i create an empty directory and execute stat command for it links=2 ,I search for symbolic links There is not another link. why for ...
4
votes
1answer
24 views

Is “mount --bind dir1 dir2” an alternative for hard links for directories?

It's a known fact that you cannot create hard links for directories. My question is whether can one use mount --bind dir1 dir2 instead of creating a hardlink of dir1 to dir2? which can't happen
2
votes
0answers
10 views

How to properly share a directory with an another group member? soft-link / hard-link

My scenario is simple. I am working with another team members, and I want to share my directory with others. I created a symbolic link of the shared directory in their home directories. ln -s ~/...
2
votes
1answer
211 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 ...
0
votes
0answers
14 views

Is there any downside to using hardlinks over copying?

Let's say I have a large file (over 1 GB) I want to copy to another place on my partition. Is there a downside to just creating a hardlink (ln /path/to/large/file /path/to/target) instead of using cp?...
1
vote
0answers
20 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 ...
1
vote
1answer
139 views

When would you want to use a Hard link instead of a soft link? An example to help Understand the difference

I have read lots of posts on What is the difference between soft and hard link but still am a bit vague on the difference. I wonder could somebody give just one or two example(s) of when you would ...
0
votes
2answers
67 views

Can you Link *Hard or Soft* to a directory and change the names of the files linked

So here's the scenario. I have a file torrent that gets updated and its so big its on a different disk, what I would like to do is create a link to where it would normally go if it wasn't so big and ...
2
votes
5answers
498 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 ...
3
votes
2answers
210 views

Script Remove All hardlinks for a specific file

I want to delete all hardlinks for a specific file. The usage would be script somefile, this would count the hardlinks for the file somefile, then it's going to delete all hardlinks keeping this ...
0
votes
1answer
45 views

What happens when you make a hard link to a file in /mnt, and then unmount?

I know this question is not going to help anyone, but I am curious. As far as I know, hard links will not break when a file is deleted. Because the file will remain to exist. But what happens when you ...
0
votes
1answer
137 views

how to know how many hardlink count an inode has and where are they located

I need to know how many hard-links pointing to a certain inode. And where are those hard-links located in?
0
votes
1answer
343 views

Does `update-alternatives --config` simply use `ln` to create hard links?

Does update-alternatives --config simply use ln to create hard links? For example, $ sudo update-alternatives --config javaws There are 3 choices for the alternative javaws (providing /usr/bin/javaws)...
0
votes
1answer
46 views

is softlinks and hardlinks are somewhat related to mutable and immutable objects (in java) in any sense?

While reading about linux,I got the following: Suppose that file1 already exists. A hard link, called file2, is created with the command: $ ln file1 file2 Note that two files now ...
0
votes
1answer
183 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 ...
2
votes
1answer
159 views

Why does Nautilus show a file and its hard link as bigger than just the file?

When I create a hard link to a 2 KB file (called fun), Nautilus shows this hard link (called fun-hard) as a file with the same size. These two files are pointing to same inode so their combined ...
1
vote
1answer
3k views

ln works on command line but not in script

I try this: for file in `ls -1 ../files/file_??_??.dat` ; do echo "$file" ; ln "$file" ; done And for every file it gives this error: ln: failed to create hard link ‘./file_01_am.dat’ => ‘../...
1
vote
1answer
460 views

Hardlink count inconsistent with matching files

On searching for files that have hardlinks on my Portable HDD using the following command: $ find . ! -type d -links +1 -ls | sort -n I get an output of the following form (there are hundreds of ...
44
votes
5answers
5k 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 ...
5
votes
2answers
476 views

Colorize hardlinks in ls output?

How can I colorize hardlinks myself? Turns out on an old Ubuntu 10.04 I have, this happens by default (same .bashrc and .profile in use), whereas on the newer Ubuntu 12.04 it doesn't. This is the ...
1
vote
1answer
226 views

D-Link DWL-G122 NetWork

I'm starting downloading ubuntu now, and I have a doubt, my computer needs a USB stick with wireless network to achieve .. And anyone know where I can download the drivers for this model? Or does ...
4
votes
2answers
2k views

What are some typical uses of hard links?

Everyone who was used to Windows can imagine what symlinks are and how they're used. On the other hand, the hard link concept is foreign to Windows (am I correct?). I would like to know what are the ...
48
votes
4answers
68k views

Why are hard links not allowed for directories?

I am using Ubuntu 12.04 and I am pretty new Linux world. I am really amazed when I try to create hard link for any directory and fail. I can create hard links for files inside file system boundary. I ...