A hard link is a directory entry that associates a name with a file or directory on the file-system, in effect creating an alias that may reside elsewhere on the file-system.

learn more… | top users | synonyms

33
votes
3answers
4k views

What are the various link types in Windows? How do I create them?

Is it possible to link two files or folders without having a different extension under Windows? I'm looking for functionality equivalent to the soft and hard links in Unix.
25
votes
2answers
10k views

What is the difference between NTFS hard links and directory junctions?

The title says it all... what's the difference? When do I use one and when do I use the other? Added: Note that Junction points, Hard links and Symbolic (soft) links are three separate things on ...
8
votes
2answers
4k views

How can I find hard links on Windows?

I've created some hard links on my Windows 7 file system using mklink. It was some time ago and I can't remember for sure where, or which files. When I use Explorer, all files look the same. When I ...
4
votes
1answer
1k views

Hard link not works under Mac OS X in GUI mode

I faced a little strange behavior, while using hard links. From Terminal, I create a text file 1.txt and a hard link "to this file" nano 1.txt mkdir dir ln 1.txt ./dir/ I check the resulting hard ...
9
votes
2answers
6k views

Finding all symbolic and hard links to a file on UNIX

If I have a specific file in a UNIX filesystem, is there a way to use bash to find all links to that file, both symbolic and hard? If I need different commands for each, what are they?
9
votes
3answers
2k views

How can I check the actual size used in an NTFS directory with many hardlinks?

On a Win7 NTFS volume, I'm using cwrsync which supports --link-dest correctly to create "snapshot" type backups. So I have: z:\backups\2010-11-28\cygdrive\c\Users\... ...
1
vote
2answers
1k views

How to stop Windows 7 Built-in-Backup creating a System Image of too many drives?

I do not want to include (D:) drive in the image. I believe I know the cause of this, it's because I have some Directory Junctions and/or Symbolic Links. Any suggestions other than removing the ...
0
votes
1answer
248 views

How to improve this bash shell script for turning hardlinks into symlinks?

This shell script is mostly the work of other people. It has gone through several iterations, and I have tweaked it slightly while also trying to fully understand how it works. I think I understand it ...
8
votes
4answers
2k views

What is a hard link in Linux?

I have searched around and am trying to understand the difference between a hard link and symbolic link (soft link). I found this link is quite useful. But I am still not very clear. I understand ...
3
votes
1answer
149 views

Editing softlinked files in UNIX

Let's say I have file A, and using 'ln -s A B', I have B. When I open, edit and save B, now B is not symlink anymore. It's just a new copy of A. Is this expected behavior? I use Mac OS X, and I ...
3
votes
3answers
5k views

Windows7 hardlink over two different drives

I am trying to create a hardlink on my C drive that points to a file on my D drive. I open up a terminal with Administrator privileges and try the following: C:\Users\sandro>mklink /H _vimrc ...
2
votes
3answers
901 views

hardlinks on ntfs with windows

How can I create hardlinks for a file on an NTFS partition using Windows? NTFS can obviously handle hardlinks, since creating them with NTFS-3g works – the links even work in Windows. Is this the ...
1
vote
2answers
190 views

Should I use Windows' hardlinks for backups?

I'm not exactly backing up but its a similar idea. I have a few archives on my computer. They have exact copies of certain files (mostly 300k to 1.5MB). It's enough to take up a gigabyte. I am using ...