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

OS X: alias vs. symlink

What is the difference between an "alias" and a symlink on OS X?
0
votes
1answer
103 views

linux: links don't work after mount

This is not your classic programming question and since I'm quite new to this (really cool!) site, I'm not sure if this is the place, so I'll try anyway. I work in a lab when all the guys use PCs ...
97
votes
6answers
91k views

How can I delete a symbolic link?

I created a symlink using mklink. Now I need to change it but I can't figure out how to delete it so I can recreate it correctly.
3
votes
1answer
4k views

How do I make a symbolic link on Windows 7?

I've recently changed from Ubuntu to Windows 7. One feature I'm struggling to develop without, is symbolic links. In linux, I would simply ln -s /where/to/ /where/from/ I've done some googling for ...
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 ...
0
votes
2answers
372 views

How to get Documents and Settings/username/Local Settings/Temp mapped on another drive

I have a very fast SSD secondary drive, which I"d like to use for my temporary files. I have a program I cannot change that I need to run all the time, and which uses Documents and ...
1
vote
1answer
891 views

Ubuntu symbolic link the content of a folder

I have two folders such as nonserved/ folder1/ folder2/ and a served folder via Apache media/ js/ css/ img/ In the end, I want to include/append contents of /nonserved to ...
10
votes
2answers
2k views

Tab-completion with directories/links

I have this problem with tab-completion in terminal in both archlinux and ubuntu: I have a link which links to a directory named "something" in my home directory. Now when I open a terminal and want ...
1
vote
1answer
2k views

symlink and sudo executable

If I have the below sudoers entry usera ALL=(userb) NOPASSWD: /home/userc/bin/executable-file usera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-file When I log-on as usera and ...
2
votes
1answer
615 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 $ ...
0
votes
1answer
73 views

How to change the address at FAT(or similar) to change the location of file?

I have a huge file which is about 67 GB is size. It takes a long time to move this file from one drive to another. So is there a way, from which I can change its memory address(I dont know the ...
3
votes
3answers
424 views

How to know the level of a symlink in linux?

For example, if a symlink a -> b b -> c c -> d say, the symlink level of a is 3. Then, is there any utility to get this info? And, also I want to get the expansion detail of a symlink, ...
5
votes
5answers
17k views

Windows Server 2008 Create Symbolic Link, updated Security Policy still gives privilege error

Windows Server 2008, RC2. I am trying to create a symbolic/soft link using the mklink command: mklink /D LinkName TargetDir e.g. c:\temp\>mklink /D foo bar This works fine if I run the command ...
0
votes
4answers
877 views

Linux: Can I link multiple destinations via softlinks?

Attempting to end up with something similar to this: $ ls -l lrwxrwxrwx 1 user group 4 Jun 28 2010 foo -> /home/bar lrwxrwxrwx 1 user group 4 Jun 29 2010 foo -> /etc/bar The ...
6
votes
5answers
7k views

Windows 7 / Symlinks - How do I copy a Symlink to a directory?

Is it possible to copy a Symlink to a directory in Windows 7. When I try to copy a symlink'd directory, it tries to deep copy the contents to the location.
22
votes
3answers
18k views

How do I create a relative symbolic link in Linux?

I need a symlink that resolves relative to the directory it is placed in. What command is used to create such a thing?
7
votes
7answers
2k views

Automatically cycle numerous or large files to the trash

I've been tasked with fixing a vendor's program that, under certain conditions, dumps gigs of junk files into a log directory. It ends up filling users' machines. My task is to figure out how to make ...
1
vote
3answers
2k views

So I want to separate my Program Files from the hard disk with the other system files. What is the best way to do this?

So I am running Windows 7 as my only OS. I have two hard drives on my computer. The first one is a 74GB Western Digital 10K RPM Raptor. The second one is a 1TB Seagate Barracuda (couldn't remember ...
56
votes
6answers
91k views

How to copy symbolic links?

I have directory that contains some symbolic links: user@host:include$ find .. -type l -ls 4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include 4737415 ...
0
votes
3answers
767 views

Firefox 3.6.3 on Snow Leopard 10.6.3 - symbolic link to command line binary doesn't work?

I have Firefox 10.6.3 installed on Mac OS X Snow Leopard from the DMG. I can run firefox from the terminal using /Applications/Firefox.app/Contents/MacOS/firefox-bin. However, if I create a symbolic ...
1
vote
1answer
645 views

How to find source of a symbolic link?

Say fileA is a sym link to fileB. I have only fileB at hand and want to find all files that are sym links to fileB. Is there a command to show this in *nix?
2
votes
1answer
949 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 ...
0
votes
1answer
516 views

Problem running mercurial against symlinked .hgrc file under Cygwin/Windows 7

This is not a question about handling symlinks in the mercurial repository. I have this setup at work where I keep my dotfiles in a separate directory (.configuration) that I can use to synch my ...
1
vote
1answer
3k views

How to link a directory in Ubuntu to a directory in Windows 7?

I've just installed Ubuntu 10.04, trying out linux for the first time. I'm wondering if it's possible to link my documents folder in Ubuntu to my documents folder in Windows, so that when I open the ...
5
votes
2answers
4k views

Symbolic links and 7zip

I'm trying to compress a folder into a .7z archive. This folder contains symbolic links to some other stuff outside the folder (both directories and files). Apparently 7zip just archives the link ...
14
votes
3answers
13k views

Ubuntu + latest samba version, symlinks no longer work on share mounted in windows

I just apt-getted (apt-got?) the latest software for my Ubuntu 9.10 linux box, and I noticed that samba was the included in the update. After the install, the symlinks in my home directory no longer ...
2
votes
1answer
104 views

Would it be okay to share Firefox's user.js between Linux and Windows?

Would it be okay to share Firefox's user.js between Linux and Windows (using a symbolic link in Linux)?
0
votes
1answer
2k views

Samba: share home directories when home directories are symbolic links

I have set up a new Ubuntu 9.10 system for five users. In the system is a large LVM volume where all the data is to be kept. The main system disk is not for this purpose, so I attempted to move the ...
35
votes
8answers
51k views

How do I create a link in Windows 7 home premium as a regular user?

I am a Linux guy and as such I am very lost when I try and do anything is Windows. I am trying to create the following link: mklink /d C:\backup\data \\myth\backup\data But I do not have sufficient ...
1
vote
2answers
420 views

Symlinks are inaccessible by their full path on OS X

I have symlinks pointing to applications placed in /usr/local/bin which is in the path. However, I can't run these applications from other folders. Even more weird, I can't access them by the full ...
1
vote
3answers
751 views

How do I get Windows XP to change where My Videos, My Music and My Pictures folders are pointing to, to make them act like Linux symlinks?

I love how in Linux you can link to folders. Is there some way to get the same functionality in Windows XP, maybe by editing the Registry.
1
vote
4answers
2k views

Ubuntu - Create a link to a specified directory so I can easily change to that directory

Is it possible to create a symlink to a directory, like /var/lib/tomcat6/webapps/MyWar that I can access from everywhere? I want to be able to say cd myapp from anywhere in the directory tree and go ...
4
votes
1answer
322 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 ...
7
votes
2answers
16k views

Using symbolic link in Windows XP

Junction is a good symbolic link tool in XP. However, it's not so easy to use at first moment, ie. only can use command line interface; move/rename target file/folder; got to use 'junction -d ' to ...
1
vote
1answer
1k views

Web shortcuts (.url) not working on Windows 7

I'm experiencing several symptoms, but I believe they are all related to web link files not working. First, I can't create we link files anymore. When I try New > Shortcut and put an URL, I get the ...
1
vote
2answers
334 views

vifm: creating symbolic links

How does one create a symbolic link in vifm? The documentation and help file mention no word of it.
7
votes
2answers
7k views

Linux, can a home directory be symlinked?

I have a second large storage hdd mounted in Ubuntu in /media/storage. I would like my home directories for me and all future users of the system to be located on this storage drive as well. I was ...
4
votes
1answer
917 views

How do I figure out if a link is a symbolic link, a hard link, or a directory junction in Windows?

If I've created a directory link via mklink, how can I figure out if it was a symbolic link, a directory junction, or a hard link (ie whether I used /d, /j, or /h)?
5
votes
1answer
2k views

No symlinks allowed in smb share

I have the following share setup on my Ubuntu machine # From /etc/fstab //192.168.1.13/media /home/USER/SHARE/media cifs username=USERNAME,password=PASSWORD,_netdev,uid=USER,gid=users 0 0 However ...
2
votes
4answers
493 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 ...
8
votes
1answer
7k views

Permission to make symbolic links in Windows 7?

How can I grant a particular user the permission to create symlinks in Windows 7? I've searched through "Group Policy" and Google, but haven't found anything. On a side note, is there a way to ...
5
votes
3answers
8k views

How can I break a symbolic link loop?

While I was trying to compile a C shared object library, I accidentally created two symbolic links which point to each other. Is there a way to get rid of them without nuking the whole directory? I ...
5
votes
1answer
2k views

How to find all symbolic links to a given file/directory?

How can you find all symbolic links to a given file / directory? This previous question only applies to hardlinks (if I read correctly).
9
votes
2answers
7k 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?
1
vote
2answers
762 views

Auto-symlink contents of directory in my home directory?

So I'm a dual-booter. I'm looking for an easy way to keep up-to-date symlinks in my Linux home folder pointing to every file and folder in the root of Windows personal directory. So, say I have ...
0
votes
1answer
1k views

Changing the user folder in Windows 7

I know this could be a duplicate, but let me explain. Let's say I want C:\Users\Me to be a link to E:\me. Like the other question says, I tried doing mklink /d C:\Users\Me E:\me. However, I get a ...
1
vote
2answers
99 views

Symbolic links in root

We have a (small) lan of linux boxes running cross mounted directories where in each host has the others mounted as hostname:/ on /hostname. So for completeness, each machine could also have itself ...
6
votes
2answers
25k views

How to find all soft links (symbolic links) in current directory?

Question relates to shell-scripting in bash. How to check with a script which files within the current directory are soft links? In case I have used the wrong term, when I say soft links, I am ...
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 ...
3
votes
2answers
681 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 ...