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
98 views

What kind of link is this, and how do I deal with them?

I've got an application that has created some sort of filesystem directory link that I've never come across. It appears to behave exactly like a symbolic link to the directory, except that as far as I ...
3
votes
1answer
272 views

which version of xattr on OSX 10.5 will not follow symbolic links?

I need to edit extended attributes of directories that are symbolic links. xattr that comes on OSX 10.5 unfortunately writes to the link target instead of the link itself. I discovered a different ...
3
votes
1answer
1k views

what is the difference between a symlink , junction , hard link and so on? [duplicate]

Possible Duplicate: What is the difference between NTFS hard links and directory junctions? well just got a litlle confused about all of them. so any explanation?
3
votes
2answers
675 views

Changing Windows public folder in batch script

I've installed Steam on an external hard drive so I can play games on different computers by just moving the drive around. Since save games are often saved in My Documents or AppData, but I want them ...
3
votes
1answer
175 views

Links in Excel changed after a crash

A few of my users use Excel spreadsheets that have cells linked to other spread sheats. It is set up so the catering.xslx pints to the inventory,comm2002.xls. I was told that excel will crash and all ...
3
votes
1answer
1k views

Why is chattr and lsattr resulting in “Operation not supported while reading flags”?

I'm getting the following error: $ lsattr /etc/rc.local lsattr: Operation not supported While reading flags on /etc/rc.local $ sudo chattr +i /etc/rc.local chattr: Operation not supported while ...
3
votes
1answer
1k views

Is it possible to create a symlink to a webdav directory on Windows?

I know I can map a webdav folder to a drive letter in Windows, but I need to map ~10 different webdav folders (different servers) and assigning a drive letter would be ugly. Is it somehow possible to ...
3
votes
1answer
795 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
223 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
2k views

How do I move a linked file on Unix?

I have a bunch of files in one directory and links to each one of those files in another directory. So ls -l looks something like this: lrwxrwxrwx 1 rembol rembol 89 Jan 25 10:00 copyright.txt ...
3
votes
1answer
489 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
167 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
297 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
487 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
982 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
5answers
1k 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
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
4k views

Batch Update Symbolic Links Recursively

I have a web app that has a bunch of symbolic links in subdirectories throughout it. I need to move the app to another directory structure, and I need to update all the symlinks to point to the new ...
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 ...
2
votes
1answer
3k views

Create Symlink in Windows from command line without “.lnk”

I want to mount a network share on a folder in Windows, because I have an application that's stored big files in a hard-coded path (e.g. c:\path\of\directory). I can't change that path. This is ...
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
1answer
2k views

Vim doesn't load symlinked .vimrc

I've got a symlinked .vimrc: simont@charmander ~/repositories/config-files [master *] ± $ ls -l ~/.vimrc lrwxr-xr-x 1 simont admin 6 9 May 17:14 /Users/simont/.vimrc -> .vimrc However, vim ...
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
5k views

Can somebody explain this `ln -s` command to me?

The command in question is: sudo ln -s /usr/lib/x86_64-linux-gnu/foo.so /usr/lib/ I read this article about ln, which indicates that the latter argument can be either a name or a directory. In this ...
2
votes
1answer
151 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
302 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
132 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
491 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
885 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
73 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
989 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
633 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
624 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
948 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
2answers
311 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
1answer
502 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
767 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
386 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
884 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
498 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
827 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
248 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
207 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
283 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
611 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

Can I create a “symlink-esque” file to “merge” two files together?

I'm dealing with an application that reads a config file, config.yml, from the current directory. This config file contains both secret information (API keys) that shouldn't be checked in to source ...
2
votes
1answer
62 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
1answer
2k views

Apache 2.4 don't follow all symlinks

I'm configuring my local Apache webserver after a fresh Kubuntu 14.04 install. Apache version is 2.4.7. I usually work with files located in a separated partition (/dev/sdb6 here), and create ...