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)

3
votes
1answer
745 views

Dropbox — set it up so it is sort of one-way read only?

I've set up DropBox as a backup for some of my files not in the Dropbox folder by using a symlink. But it occurs to me that if something gets messed up on Dropbox's end, then in theory it could make ...
3
votes
1answer
211 views

Updating the last write time for a symbolic link in Windows

Is it possible to update the last write time for a symbolic link in Windows? I can use the following powershell command to update the last write time of a directory, but it doesn't work for a ...
3
votes
1answer
467 views

How synchronize two disks (or folders) using symbolic (or hard) links (like rsync)?

I'm searching a tool or a shell script or another program to synchronize two or more folders or disks. But it differs of rsync tool, because, I don't want to duplicate the missing file, but do a ...
3
votes
0answers
2k views

Windows 7 NTFS Symbolic Link - Network Share Availability/Timeout

In Windows 7 and Windows Server 2008, is there a way to quickly detect if the target of a symbolic link is available? For example, a symbolic link is created to a remote share UNC using the ...
3
votes
1answer
165 views

Firefox keyboard shortcuts don't work when a form field is focused

When using Firefox in Linpus Linux (on an Acer One netbook) some hot keys don't work. Ctrl + w Alt + d However Ctrl + Tab Does still work. Edit: The version installed is 3.6.
3
votes
1answer
291 views

using junctions and moving the Recycle Bin to the right partition

I have got two partitions on a PC running Windows XP: C: system partition D: data partition Usually every user has got his user profile on C:\Documents and Settings\<user> But I have moved ...
2
votes
4answers
440 views

Linux: file recovery

I desperately need some help regarding problem I am facing now. While creating a softlink for a very important file I gave the reverse command by mistake. Instead of giving it "ln target linkname" I ...
2
votes
2answers
783 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 ...
2
votes
4answers
7k views

Is there anything like a link or shared mount point for FAT32 folders in Linux/Android?

I often want the same files to be accessed by different apps on my Android phone, but the apps look in different folders. Is there a way to make two different folder paths on a FAT SD card point to ...
2
votes
3answers
2k views

Check if two paths are pointing to the same file

I've got a script to recursively create symlinks in my home directory to my settings directory, to keep the files under version control. I would like it to skip files which are already symlinked via a ...
2
votes
2answers
96 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 ...
2
votes
3answers
133 views

Direction of a symlink

touch a ln -s a b The above command creates a symbolic link which originates from "b" and points to "a": lrwxrwxrwx 1 root root 1 Dec 20 23:41 b -> a The question is that how to say that ...
2
votes
2answers
1k views

Using mklink in Windows7

I have two usb flash drives D:\ and H:\, inside they have some bin files 001.bin,002.bin on D 003.bin 004.bin on H I want to create a symbolic link in such a way that when a program accesses ...
2
votes
5answers
985 views

Does ln -s require you to be in a certain directory?

I want to create a simple symlink to a file. It works perfectly if I run the command from inside the directory where I want the symlink to be created: /path/to/link $ ln -s /path/to/file . But if ...
2
votes
1answer
3k views

Soft link to external drive not visible in apache directory listing

I am on Ubuntu 8.10, and generally share my content with ppl on LAN by creating soft links in Apache2 document root to the intended directory. So if I want to share my Videos directory I will CD ...
2
votes
1answer
150 views

Developer is requesting that I symlink /sbin/shutdown to /bin/shutdown, why?

A developer who is build a bespoke system for my company is asking me to set the following symlink, and I'm not sure whether there is any point to this at all, and why the developer can't just change ...
2
votes
2answers
289 views

shell utility to check if directory is an ancestor to a file

How can I check that a given regular file of path f is a descendant of a directory of path d. If not for symlinks, I would just check if d (with a trailing slash) is prefix to f. Now with symlinks ...
2
votes
1answer
86 views

Starting programs from terminal then exiting terminal exits started programs?

I really was unsure how to phrase the question title. What I mean is that when I use the terminal to start a program, most of the time when the terminal is closed it also exits the programs started ...
2
votes
1answer
435 views

Can I mirror a folder's contents as it's changed in OSX?

TL;DR How can I mirror the contents of a Mac OSX directory, to another directory on my hard drive? I have a Dropbox folder that I use on all of my computers (a few Windows machines and a Macbook.) ...
2
votes
3answers
830 views

Detect all links that exists pointing to /tmp?

I want to find out which file links exist that point to my /tmp folder on Ubuntu. Background: I had a problem, that my /tmp folder privileges were changed by some accident to 755. The system wasn't ...
2
votes
1answer
70 views

Symbolic links when formatted

I have a symbolic link in C drive to a location on D drive. If I delete the C drive partition or format C drive, will it delete/destroy the files on D drive? I run windows 7
2
votes
2answers
926 views

How to make symbolic link independant of drive letter

I have partitions set up on my windows 7 machine such that one drive holds all my personal documents, while the C drive is meant to hold everything else. To help the two work together, I made some ...
2
votes
1answer
599 views

Is it possible to have shortcuts appear in the start menu search through a symbolic link?

I have a folder full of stuff that I sync across all my computers and virtual machines. It contains a whole load of stuff, including portable applications. On a new OS installation, I run a batch ...
2
votes
2answers
597 views

On Linux (CentOS 5), remembering when we've followed a symlink and being about to 'cd ..' out again

I'm trying to figure out how to tell the shell (tcsh) to remember when I've gone into a symlinked folder, and allow 'cd ..' to navigate back out of the symlink rather than just navigate to the parent ...
2
votes
1answer
936 views

how would i find all locations of symlinks that point to a particular path or file?

I have a file system where one or more symlinks exist to a file. Is there a way to go thru each file and determine where all the symlinks that point to it on the file system are? OS is Ubuntu 9.10 ...
2
votes
1answer
710 views

Working symlink isn't accessable through explorer Windows 8

I made a symlink to an folder with mklink on w8x64 between two NTFS partitions on the same disk. All programs think it's a valid folder, but Windows explorer doesn't seem to get this, and displays a ...
2
votes
1answer
334 views

Directory of dereferenced symbolic link?

In shell script, how can I dereference a symbolic link and get the directory of the file it links to?
2
votes
1answer
744 views

Adobe Reader not accessing Symbolic Link over network drive

My main system is running Windows 7. I have a mapped network drive (call it z:) that is hosted on a Windows XP machine (not sure if this matters at all). I have created a Symbolic link (call it SL, ...
2
votes
3answers
3k views

Following a remote symbolic link via Windows Shares

In Windows 7 X64 I have a directory C:\shares\ Which contains 2 shared folders, each of these contains a couple of hundred symlinks, mapping the contents of 4 folders spread across 4 drives. So ...
2
votes
2answers
461 views

how to know if a directory is referenced by a symlink

Is there a command that I could execute to find out if a directory is referenced by a symlink somewhere on the machine. ie: pwd => /home/user/source/ vdir lrwxrwxrwx 1 user group 24 ...
2
votes
3answers
798 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 ...
2
votes
1answer
240 views

Can one symlink to a URL? [closed]

I have a CSS file that I'd like to symlink to an external CSS file. The external CSS file is only available as a URL - it's not on my filesystem. Is this possible? I'm running OSX.
2
votes
1answer
203 views

Is it inefficient to have symbolic links to symbolic links?

We're setting up a series of Makefiles where we want to have a project-level include directory that will have symbolic links to sub-project-level include files. Many sub-project developers have ...
2
votes
1answer
273 views

Differentiate between folders and symbolic links on Windows

I created some symbolic links for some folders when I had Windows Server 2008 R2 installed. Now I have formatted and installed Windows 7. The symlinks are still there but I don't know how to ...
2
votes
1answer
600 views

Are my Linux symbolic links acting correctly?

I've been using Linux on and off for the last 15 years and today I came across something in bash that surprised me. Setup the following directory structure: $ cd /tmp $ mkdir /tmp/symlinktest $ ...
2
votes
1answer
38 views

How do I delete symlinks from a Windows folder with a batch file/script?

How do I delete all symlinks and only all symlinks from a folder with a batch file/script? The folder is c:\wamp\www, and this is what I've tried: Content files delete.cmd for /f "delims=" %%D in ...
2
votes
3answers
211 views

Link My Documents folder to external SD Card

I have a laptop with 120GB SSD (limited space) and a 64GB SD card in the laptop. I have cloned my hard drive from a clean install of all the software installed. I would like to have the My Documents ...
2
votes
2answers
208 views

Make the contents of two folders appear in one

In Windows 7, I have three folders: "Images", "assets" and "all". I want the contents of "Images " and "assets" to appear in "all" automatically without copying those files into that folder (e.g. ...
2
votes
2answers
53 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 ...
2
votes
1answer
100 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
1answer
55 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 ...
2
votes
2answers
97 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/ ...
2
votes
1answer
75 views

launching applications from the Windows command prompt?

Is there a Linux methodology to include .exe files symbolically to a location referenced by the %PATH%? The process seems trouble free on Linux, but when attempting to do similar actions via mklink on ...
2
votes
1answer
365 views

symlinks for admin users on Windows

On Windows you can create symlinks either if you start the programm, you want to create a symlink in (e.g. cmd), as Administrator. or if you give your user/usergroup the permission to create ...
2
votes
1answer
841 views

Convert Linux symlinks to Windows symlinks

I've noticed that Linux symlinks don't work in Windows, and vice-versa. Is there any way to convert Linux symlinks to Windows symlinks? Specifically, I want to convert relative Linux symlinks to ...
2
votes
2answers
186 views

How to remove a duplicate symbolic link

I accidentally created a link to a folder in the same directory with the same name as the folder, and I'm not sure how to safely remove it without removing the actual folder. # ls -l total 4 ...
2
votes
2answers
786 views

How to copy relative symbolic links and keep targets

My situation has 2 directories: /blah/d01 and /blah/d02 $ls -l /blah/d01 a/ b/ c/ fa -> a fb -> b fc -> c and I want to copy fa, fb, fc to /blah/d02, and as a result: $ls -l /blah/d02 fa ...
2
votes
1answer
480 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, ...
2
votes
1answer
813 views

How can I get Total Commander to recognize Cygwin symlinks?

I love Total Commander. I love Cygwin. But they are not always friends. One thing that bugs me, is the way symlinks work in Cygwin. Suppose I do this: $ ln -s my/path/to/nirvana budhism And then ...
2
votes
1answer
13k views

Batch File - Delete Shortcut From ALLUSERS Desktop

In Vista/7, if I try to delete a shortcut using the following command -: del "%allusersprofile%\Desktop\MyShortcut.lnk" ...Windows sees this folder as empty and doesn't delete the file. The ...