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
728 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
209 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
466 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
1answer
164 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
290 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
428 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
751 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
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
934 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
2answers
89 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
127 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
1answer
149 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
281 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
80 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
413 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
815 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
906 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
583 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
590 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
932 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
696 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
324 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
714 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
449 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
780 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
235 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
202 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
271 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
597 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
2answers
183 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
49 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
92 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
49 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
94 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
74 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
330 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
2answers
181 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
758 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
462 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
784 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
225 views

OS X: prevent Finder/File Chooser from following directory symlinks

I have a have a symlink foo in /Users/myaccount which points to /Volumes/foo. In the Finder or file chooser, the symlink does not show up as directory, so I can't expand it to select ...
2
votes
2answers
489 views

A sync method that creates symbolic links?

Does anybody know of an sync app that can produce symbolic links rather than copying the files? Or what would a (Windows) batch script look like that does this? If a script is the solution, I want to ...
2
votes
2answers
1k views

Can I move Windows 7 C:\Users more easily using 2 installs of Windows 7? [duplicate]

Possible Duplicate: Moving users folder on Windows Vista/Seven to another partition I am trying to move my Windows 7 C:\Users folder off of my 64GB SSD onto another drive (A partition on an ...
2
votes
1answer
1k views

Move files from EXT to NTFS preserving symbolic links

When I try to move lots of files from an EXT partition to an NTFS partition in Ubuntu, it complains about "Filesystem does not support symbolic links", and fails. Of course NTFS does support symbolic ...