A symbolic link ("symlink") is a reference to a file or folder which may exist on the same or another drive in the system. Symbolic links allow users to create a more logical file layout, when the files themselves may be spread across multiple disks or relocated to more convenient locations.

learn more… | top users | synonyms (1)

0
votes
2answers
347 views

Hide files in unix without changing their name (adding the dot) so that scripts that use them still work [duplicate]

Short version: I want to be able to prevent certain files from appearing in the output of ls, without adding the dot, and thus changing their names. Long version: Recently, I moved a bunch of scripts ...
0
votes
0answers
34 views

What do `Drop As…` options of `Link Shell Extention` mean?

After picking link source using Link Shell Extention as below snapshoot We have the below options to drop. What are their meaning? For folder For file
1
vote
1answer
495 views

Disk usage of a symbolic link

If I check the file size of a symbolic link by stat(), then it reports a nonzero file size equal to the link path string. But when I use du on the link, it reports a size of zero blocks. Is there a ...
1
vote
2answers
61 views

Need some help on creating sym links

Using Linux Centos 6 I have 16 years of data sorted in directories by year and then day (1997/001, 1997/002...). Each 'day' directory has 24 files, 1 for each hour, with hour name in each file (i.e. ...
1
vote
2answers
216 views

Easiest way to restore symbolic links turned into text files?

I had folders with many symbolic links in them. Unfortunately after copying that around different filesystems, they've turned into plain text files with the link target as the contents. That is: ...
0
votes
1answer
281 views

How to replace Windows My Pictures folder by symbolic link without breaking long folder name?

Windows lets you store current user images in a custom folder, %userprofile%\pictures, which appears as "My Pictures" under the picture library in the explorer left pane. I have My Pictures on another ...
1
vote
1answer
42 views

Cross platform softlinks?

I am using a scientific software that require softlinks to work with reasonable efficiency. However, I'd also like to sync my data, that must contain bare data from that software (i.e. not packaged ...
1
vote
0answers
265 views

Microsoft OneNote 2010 & symbolic links

OneNote uses a simple folder structure to organise its Sections and Sub-Sections - a Section is a file, a Sub-Section is a subfolder within the notebook which contains its own Section files. What I'd ...
1
vote
0answers
181 views

How to get Dropbox to sync changes inside a symlinked directory?

On Win 7 I have a symbolic link from inside the Dropbox pointing to an external directory which I'd like to sync. Upon the initial sym-linking and whenever restarting the Dropbox program, the sync ...
1
vote
3answers
156 views

How to copy MS Windows symlink files as is?

I made some symlinks in MS Windows using mklink /D command. But when copy it, Windows Explorer always perform deep copy instead copying symlink itself. How can I just copy the link? I need to send ...
2
votes
0answers
320 views

Can not cd into symlink on Debian 7

I want to give user webadmin full access to directory /usr/tomcat/webapps. So, I have created a symlink in webadmin's home directory to the target directory: lrwxrwxrwx 1 webadmin tomcat 28 Aug 19 ...
2
votes
2answers
4k views

How to create symbolic links to all files (class of files) in a directory?

I would like to create symbolic links (ln -s) to all files (or a class of files, e.g. ending with .bar) in a certain directory. Say I'm in the cwd and type ls ../source/*.bar gives me foo.bar ...
1
vote
3answers
550 views

How to create a link to an executable which must be run in its own folder?

I have a program inside a folder like below. The objective is to have a link in the utilities folder so I can call it from any command line. C:\Utilities\Program\ program.exe ...
2
votes
2answers
55 views

Is it necessary to exclude “both” symbolic linked folders in antivirus?

I'm trying to exclude a folder from antivirus scanning, and I'm wondering if it's necessary to tell the antivirus (MSE) to exclude both "folders" in order to truly exclude the actual folder? For ...
-1
votes
1answer
61 views

Does Windows 7 MKLink make a copy of the linked file?

Assume I make a softlink (symbolic link or junction) to a 50GB directory, it appears as if the "shortcut" folder is as same as target folder. Will Windows use 50GB more for the "shortcut" folder?
1
vote
2answers
170 views

How to copy all the files from a folder but the symlink

I'd like to copy everything recursively from a folder but the files symlinked from an other directory, how can I achieve that?
1
vote
1answer
157 views

How can I create a symbolic link from Windows that will work under Linux?

I have a ASUS O!Play HD media center hard-drive thingie. It has a 2TB hard drive which is formatted in NTFS, and runs some version of linux. The UI for this thing is awful, and every time I turn it ...
0
votes
1answer
750 views

Creating symbolic link to new location after moving C:\Windows\Installer to D: partition

I am trying to make some space on my C: partition, an SSD drive, by moving the C:\Windows\Installer partition to the D: drive (following this guide). The last step is: Launch a Command Prompt (as ...
0
votes
1answer
289 views

Cannot cleanly delete symlinks

Problem: When deleting a symbolic link, traces of it remain in the filesystem. Demonstration: Use MKLINK to create a symlink pointing to E:\test Resulting output of DIR /AL /S C:\ | FIND ...
0
votes
3answers
627 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
0answers
354 views

Modify a symlink

Is there a way to modify a symlink in place? ln -fs a b This doesn't count, since it is unlinking and creating a new symlink (neither is it atomic, but that's a different story). Research suggests ...
1
vote
1answer
682 views

How to copy directories into symbolic links using rsync?

I have directories and files locally and I want to copy them over to another box using rsync . The problem is that most of the data is already on the remove box, but not on the target disk. E.g., I ...
0
votes
2answers
64 views

How to search for broken links on the entire local file system of a server?

I have to do this in korn because bash is not installed. This is my script so far but it's not quite working as I expect. cd / find . -xdev -type d > /tmp/dirlist export YOURLIST=`cat ...
0
votes
1answer
39 views

Is it possible to know when you're “inside” a symlink?

In Windows, is it possible to know when you're "inside" a symlink? For example -- let's say I have a symlink at C:\foo\ that links to D:\foo. When browsing the C:\ drive and then double-clicking on ...
9
votes
1answer
241 views

When should I use hard links as opposed to soft links?

I'm about to start toying around with mklink but I'm still trying to get a real grip on this whole "symlink" thing. In particular, I've noticed there's two types of links - "soft links" and "hard ...
0
votes
1answer
52 views

Can I track files in two git repositories simultaneously?

I've got two repositories set up for a class I teach, one outward-facing with demo and example code, and one to track changes I make to the class manual. I've written the manual in LaTeX Listings ...
2
votes
1answer
131 views

How can I clone a directory structure with symbolic links (in-tact, also duplicated)?

We use Kiln for our source control; and back it up by copying the KilnRepositories folder to another (local) drive while the services are all stopped, and then on to a network drive afterwards (the ...
2
votes
2answers
107 views

Do virus scanners scan symlinks?

If a virus scanner (like Microsoft Security Essentials, for example) comes across a symlink'd folder, will it follow through and scan that respective folder, be it on another drive (and how every many ...
1
vote
1answer
664 views

Creating an 'alias' or 'symlink' to a separate folder in apache

-/ |--bin |--home |--user_1 |--somefile.html |--somefile2.html |--user_2 |--differentFile.html |--var |--www |--file1.html i want the urls to be ...
0
votes
1answer
245 views

Windows : how to know if a symbolic link still works

I have lots of symbolic links (windows 7). How to know if there are working or if they are dead (ie original file has been deleted/moved/renamed) ? I tried if not exist mylink.txt echo The link is ...
2
votes
0answers
57 views

Time Machine backs up symbolic links that haven't changed

Lately I've noticed that my Time Machine backups are taking a very long time. I recently replaced my boot drive, and I thought the problem might have been due to the way I reconnected the drive to the ...
1
vote
3answers
358 views

OSX: would it be possible to create a symbolic link that points to /dev/null e.g. a black hole directory

OSX: would it be possible to create a symbolic link that points to /dev/null e.g. a black hole directory. I Work at a help desk and we need to sanitize a directory just in case data gets into it at ...
1
vote
1answer
66 views

symlink's Last access time does not updates in windows 7

I am stuck around with a problem which is something as follows: i have a symlink at my desktop and the original file is in my local partition (Say D: drive) whenever i update the original file, ...
0
votes
1answer
90 views

Creating a file through a dangling symlink with vi

This is the content of my typescript file, /mac>ln -s non_exist ~/link /mac>vi ~/link Hi! I am a link. /mac>cat ~/link Hi! I am a link. /mac>cat non_exist cat: non_exist: No such file or ...
0
votes
0answers
195 views

Symlinks are lost after running rsync to sync two directories

I have two identically named directories with similar subdirectories and I would like to merge the contents of one into the other. I'm trying to use rsync to do this and I'm finding that symlinks ...
5
votes
1answer
1k views

How to properly create symbolic link?

scenario : I'm in a place that is not in PATH I have a file name dofoo that is executable I want to create symbolic link in /usr/bin that points to dofoo in current directory quite hard to get the ...
4
votes
1answer
3k views

NFS: too many levels of symbolic links. How to find and fix?

wim@wim-desktop:/media/data/dots/manouche$ ls > /dev/null ls: reading directory .: Too many levels of symbolic links wim@wim-desktop:/media/data/dots/manouche$ find . -type l -exec ls -l {} \; ...
0
votes
1answer
81 views

Should symlinked programs be put on drives with fast write speeds?

When deciding where to symlink-move a program, should it be to a drive that has a fast write speed, in lieu of program's needing to cache/write to disk? OR, if/when a program needs to cache to disk, ...
3
votes
2answers
3k views

How to run a symlink pointing to an executable in terminal (Linux)

I installed NodeJs on an Ubuntu machine, and the package have been installed as nodejs. Now, to run it as node, I created a symlink: sudo ln -s /usr/bin/nodejs /usr/bin/node This will work if I ...
1
vote
0answers
25 views

Windows 8 Command Prompt Symbolic Link Accident [duplicate]

So I totally messed up. I was trying to create a symbolic link for the program Sticky Notes to create a path. I was trying to type: mklink /J “%APPDATA%\Microsoft\Sticky Notes” ...
2
votes
1answer
67 views

Can I create a symlink or similar that returns a random file from a set every time?

Say I have files foo-a.wav, foo-b.wav and foo-c.wav on disk. I have a piece of software whose interface allows me to enter the name of a single sound file; every time a certain feature of that ...
1
vote
2answers
762 views

Is it possible to create a subfolder inside a symlink folder but not be added into the parent folder?

Is a very tricky question, sorry about that Base on this Folder A file1 file2 Folder B ( symlink of Folder A (softlink) ) file1 file2 that i want to do is create a folder or file inside my ...
1
vote
0answers
190 views

adding symbolic link to os x finder sidebar

I'd like to add a symbolic link to the OS X finder sidebar, but when I do so the sidebar follows the link and creates a direct link to the target folder. This is not what I want, the reason I use a ...
1
vote
0answers
44 views

Can I add ADMX files via symbolic links?

Is it possible to add Group Policy templates (ADMX files) on a local Windows 7 machine by creating a symbolic link (soft link) in the C:\Windows\PolicyDefinitions folder that points to an ADMX file ...
2
votes
2answers
1k views

cp -H vs cp -L (What is a “command-line” symbolic link?)

My OS states the following in the man page of cp: -H follow command-line symbolic links -L, --dereference always follow symbolic links I am having difficulty figuring out what ...
0
votes
2answers
583 views

Trying to create a Symbolic link between Sublime Text 2 and Subl

As the title says, I'm trying to create a sym link for my Sublime_text launcher, I did: sudo ln -s /path/to/sublime_text /usr/bin/subl and when I ls /usr/bin the blue subl link is there. Then I ...
0
votes
2answers
191 views

Can I create a single ftp to access multiple network locations

I have an ftp server setup using FileZilla Server and 5 application servers which each have a backup folder that is shared. On the ftp server I have setup symlinks in the root ftp directory that ...
2
votes
2answers
108 views

Symlink bash autocomplete

If I typer unrar-nonfree and double tap tab, I get the usual autocomplete result: michaelxu@michaelxu-server:~$ unrar-free / backup.sh initrd.img.old mxx.lock tmp/ bin/ ...
0
votes
1answer
308 views

What factors might prevent this symlink from working as intended?

I'm on a Windows 7 64-bit machine, and I've been trying to get a symlink set up to some rather hefty files so that I don't need to use twice the memory (two different applications need to access these ...
3
votes
1answer
520 views

Hard symbolic link directory

I am taking over control of a server and I have found a directory in two different locations: /var/www /home/user.name (i.e., ~/) that have the exact same inode number: ls -i 11895253 ...