0
votes
1answer
12 views

Is there a way to catch all invokations of hardlink creation and replace them with symbolic links?

Assume I have a program or build script (consider it a blackbox) which is creating hardlinks and run on Linux (Debian 7.4). If I want to experiment and find out whether the program would work with ...
0
votes
2answers
25 views

Can mklink make portable links?

Is there any way to create portable links in NTFS using mklink? Or it there a better solution? I want to be able to distribute an application in a zip file or folder copy where there is one "real" ...
0
votes
0answers
15 views

Windows symbolic link detect change

I'm using programs that have settings.ini files. Normally when I change the file, the program detects the change and updates. But if settings.ini is a symbolic link, no programs ever detect when it ...
0
votes
0answers
50 views

Share Firefox History and Bookmarks without using Firefox Sync

I'm using Tor Browser 3.5.3 having Firefox 24.0.0 ESR and another Firefox 29.0.b1 . I want to have my Web Browsing history, Bookmarks to appear in both the TOR and standard Firefox. Inbuilt Firefox ...
0
votes
1answer
34 views

Inheritance system for folders (symlinks?)

Okay, here's the scenario. I have a base folder "Base" that has a blank, multipurpose template. However, this template is 12 gigabytes. I want to be able to have an inheritance system where linked ...
0
votes
0answers
66 views

How can I create hardlinks to an OSX bundle? Or the symlinks inside the bundle?

I have a hierarchy of files that I need to hardlink to a temporary install location. Some of those files are frameworks. Frameworks are bundles but essentially just folders, which aren't supported by ...
0
votes
2answers
44 views

How is it that symbolic links can be used across different filesystems, and hard links cannot?

How is it that symbolic links can be used to link across different filesystems? And why is that hard links cannot be used across different filesystems?
0
votes
0answers
46 views

Backup a linux partition without imaging

Typically to backup my Windows partitions (note: pre-Vista/2008 Windows, no symlinks), I usaully tar caf /backup/<name><date>.tar.xz /mnt/<fs>. Currently, I use dd | xz to backup ...
0
votes
3answers
375 views

How to separately count number of files, directories, symbolic links and hard links within a single find run?

To check a successfull migration I'm using find to count the number of files, directories, symbolic links and files with more than one hard link. As the directories to check contain a huge number of ...
0
votes
1answer
263 views

Why don't hard link destinations on Windows Server 2003 immediately show the proper file size and last modified time?

I wanted to create hardlinks to files on Windows Server 2003 and I stumbled upon the superuser question hardlinks on ntfs with windows. I tried mklink as one of the answers suggested and found that ...
0
votes
3answers
79 views

directory in /proc/sys/net/ipv4/config have no hard links?

Why the directories inside /proc/sys/net/ipv4/config have no hard links? ls -l /proc/sys/net/ipv4/conf total 0 dr-xr-xr-x 0 root root 0 Dec 31 08:27 all dr-xr-xr-x 0 root root 0 Dec 31 08:27 default ...
1
vote
0answers
167 views

shortcut to recursively copying a directory preserving modes, ownerships and hard and symbolic links

I am using the following to recursively copy a directory while preserving modes, permissions as well as hard and symbolic links: cp -pr --preserve=links dir-a dir-b However I have the following ...
1
vote
1answer
202 views

bash :: visually distinguishing hard links on ls

I am using bash shell in Ubuntu precise. I am partial to symbolic links in bash even when a hard link would make more sense because they can be more easily identified with an ls. In contrast, for ...
1
vote
2answers
794 views

Windows hard link taking up space?

On my computer I create a hard link mklink /h git-link.exe git.exe Hardlink created for git-link.exe <<===>> git.exe Now they both take up space 2012-04-17 12:14 AM 6,905,039 ...
2
votes
1answer
455 views

Generate a list of files by piping output of find command into another find command?

I need to generate a list of files for use in a shell script. The list should be all files (in a specified directory) that are hardlinked. I want to replace the hardlinks with symlinks. (Obviously, ...
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 ...
4
votes
2answers
228 views

Hard/SymLinks and Alternate Data Streams

An interesting thought just occurred to me while thinking about NTFS. NTFS supports hard links, symbolic links, and Alternate Data Streams. Is it possible for an ADS to be a link to another file? ...
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.
3
votes
1answer
764 views

What happens when I backup a symbolic link to a briefcase?

The story: I recently started trying DropBox. After some fiddling, I found I could use an app, DropBoxFolderSync, to sync a folder with DropBox, leaving something called a "Symbolic Link" (which seems ...
9
votes
2answers
5k views

Executing symbolic link to exe - “The specified path does not exist”

When trying to execute a symbolic link which points to an exe file (on Windows 7), the "Open with" windows appears. When renaming it to a ".exe" file, it says "The specified path does not exist. Check ...
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 ...
-1
votes
4answers
6k views

How do I delete hardlinks, symbolic links, junction points, etc please?

I could be wrong, but I'm yet to hear a valid argument for the exploitability that these things deliver...outweighing their very dubious / debatable functionality. They seem to me to be marginally ...
2
votes
3answers
773 views

How much space do NTFS hardlinks/symlinks occupy?

Well, I guess it must be something proportional to the original filename plus the new filename for symlinks, and only the new filename for hardlinks, but how does this affect the disk space exactly? I ...
0
votes
1answer
2k views

Equivalent for Windows 7 “mklink” on OS X?

Is there a feature on OS X that does the same as mklink under Windows 7? It can create symbolic links and hard links. I have just read about this tool to have Dropbox sync an application folder by ...
2
votes
1answer
625 views

Accessing files obscured by filesystem mounted at non-empty directory

I wish to mount a volume/filesystem at a non-empty directory, yet still retain access to the directory's contents. Is this possible? I know that a filesystem can be mounted at a non-empty directory ...
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 ...
4
votes
1answer
320 views

Unix: softlinks, hardlinks

I am somewhat confused what the differences between a softlink, and a hardlink are (on unix). It seems like a softlink is the same as a shortcut in windows or an alias on Mac OS X. (Can someone ...
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?
6
votes
4answers
4k views

What are the advantages of symlinks over hard links and viceversa?

I understand the differences between symbolic and hard links, but I've never understood why choose one or the other.