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)

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 ...
2
votes
1answer
704 views

Symbolic link modification for HP unix

I'm trying to modify the following in order to rename some symbolic links: find /home/user/public_html/qa/ -type l \ -lname '/home/user/public_html/dev/*' -printf \ 'ln -nsf $(readlink %p|sed ...
2
votes
1answer
1k views

Perforce and how to create symbolic links on samba share in Windows

I am using Perforce and have Workspace of project under Linux. The project contains many symbolic links. I have no problems with Perforce and the symbolic links as long as I work on Linux. However, if ...
2
votes
1answer
2k views

Windows 7 on SSD using Symlinks

for my new desktop computer i want to buy a (smaller) SSD drive and put Windows 7 64bit on the SSD and only the most used stuff. And a second (bigger) normal HDD on which everything else goes. What is ...
2
votes
1answer
102 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)?
2
votes
1answer
156 views

How to delete a broken symbolic file link in Windows

So I have a file in a directory with an unicode name. I wanted to create a link to this elsewhere, but when I tried to do it with a command like mklink file "S:\ディレクトリ\target" in cmd.exe, the result ...
2
votes
1answer
33 views

change several symlink destinations at once

Recently I changed my username in osx following apple documentation. I have sh and bin directories under home directory. Normally I write sh/foo.sh and link it to bin/foo to use it. After changing ...
2
votes
0answers
48 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 ...
2
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 ...
2
votes
1answer
681 views

Symbolic Links to an Existing Folder

I'm trying to synchronize two folders on two different computers to my Dropbox folder on their respective machines. So for example: XP: C:\Dev -> C:\Documents and Settings\username\Dropbox\Dev OSX: ...
2
votes
1answer
12k 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 ...
2
votes
1answer
276 views

Symlink all files but copy certain extensions

I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to ...
2
votes
1answer
255 views

symbolic link on folder created every day

I've this structure 2011-04-18T07.32.19UTC 2011-04-19T07.32.19UTC 2011-04-20T03.15.01UTC Every night, a new directory based on the current date is created. I would create a symbolic link on the ...
2
votes
0answers
456 views

Cannot change permissions in symlinked dropbox directory in Ubuntu 10.10

Title pretty much says it all, but here's what I'm doing... ls -l produces this... drwx------ 1 brian brian 4096 2010-12-28 14:19 foldername -rw------- 1 brian brian 0 2010-12-28 15:54 index.html ...
2
votes
1answer
636 views

Accessing files obscured by filesystem mounted at non-empty directory

I wish to mount a volume/filesystem at a non-empty directory, yet still retain access to the directory's contents. Is this possible? I know that a filesystem can be mounted at a non-empty directory ...
2
votes
1answer
479 views

The fastest way for relinking a directory

I use a Gentoo Linux, and I'm currently moving my /usr/portage (portage's database, containing thousands of small ebuild files), /var/tmp/portage (portage's compiling directory), and /var/tmp/ccache ...
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 ...
1
vote
2answers
818 views

Windows hard link taking up space?

On my computer I create a hard link mklink /h git-link.exe git.exe Hardlink created for git-link.exe <<===>> git.exe Now they both take up space 2012-04-17 12:14 AM 6,905,039 ...
1
vote
2answers
1k views

Access is denied on mklink

I am trying to get a symlink working over a network drive. I have already tried suggestions on questions already asked, such as running as administrator and checking if the directory already exists. ...
1
vote
2answers
133 views

Is there something like hardlinks that split into separate files on modifications?

Let's say files orig and copy are huge but identical files. In order to save storage space one could therefore either make copy a soft-link to orig or hard-link both files to the same data. orig must ...
1
vote
1answer
600 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?
1
vote
2answers
2k 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
2answers
549 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
2answers
2k views

How get full path to target of link

If I have a symbolic link /var/opt/foo created with ln -fs /path/to/target/dir foo. How can I in a script that sees only the link get /path/to/target/dir? What I want to achieve in the script is rm ...
1
vote
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 ...
1
vote
1answer
238 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
375 views

Is there a method to find how many soft links point to certain file?

SSH is a soft link (symbolic link or symlink) to dropbear. I want to know how many files are soft linked to dropbear. Is there any method to find how many soft links point to certain file? It would ...
1
vote
1answer
1k 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 ...
1
vote
2answers
47 views

Is it safe to replace a folder with a partition mounted to that folder n Windows 7?

I know most programs won't notice the difference, but is it true for e.g. virtualization software like VMware? I'll give you an example: Let's say my virtual machines are in C:\_VM\ My C: space ...
1
vote
2answers
1k views

How to stop Windows 7 Built-in-Backup creating a System Image of too many drives?

I do not want to include (D:) drive in the image. I believe I know the cause of this, it's because I have some Directory Junctions and/or Symbolic Links. Any suggestions other than removing the ...
1
vote
2answers
2k views

Use symlink to provide access to a specific file under a restricted directory

My home directory's permissions allow only myself access to it. Is it possible to put a file inside my home directory with.. say.. full permissions, and create a symlink to it so other users can ...
1
vote
2answers
644 views

Move to the directory of a symbolic link

On a UNIX machine I in my current directory I create a symbolic link: > ln -s public_html/code/index.html Which creates a file locally named index.html. How can cd to the directory ...
1
vote
3answers
656 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
2answers
98 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 ...
1
vote
2answers
63 views

Make a symlink in bash with two relative paths

I have two directories in my home: ~/dir1 and ~/dir2 with a file in the first: ~/dir1/file.txt Is there any way that I can make a symlink to it from ~/dir2 without moving to ~/ and if not why is that ...
1
vote
1answer
33 views

Show one folder's content in other folder

My question is about Linux. I have 2 folders - /home/user/first and /home/user/second. In the /home/user/first there are some files. The second folder is empty. What I want to do is to have ...
1
vote
1answer
146 views

trying to make symbolic link but have spaces in folder name

I'm trying to make a symbolic link via the windows command prompt. I am using a drop box-like service called Copy. it creates a new folder which it syncs to the web and other computers that it's ...
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
124 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
4k 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 ...
1
vote
2answers
813 views

Moving the home directory to a new drive

I have no more space left on my hard-drive. So I bought a new one and I would like this hard-drive to be the home folder. I thought of copying all the stuff I have on the home folder to the ...
1
vote
2answers
653 views

remote symbolic link / junction

Might be a pretty obvious one but have had some trouble finding solid answers. I have a directory on a windows network share containing different versions of an application. I would like to have a ...
1
vote
1answer
2k views

removing symbol link with too many levels of symbolic links

I created a link by the command sudo ln -s /etc/Sublime\ Text/ /usr/bin/subl Now I am trying to remove it with sudo rm -r /usr/bin/subl/ But it is telling me rm: cannot remove ...
1
vote
1answer
207 views

bash :: visually distinguishing hard links on ls

I am using bash shell in Ubuntu precise. I am partial to symbolic links in bash even when a hard link would make more sense because they can be more easily identified with an ls. In contrast, for ...
1
vote
3answers
742 views

Win7 System folder contains infinitely looping SYSTEM(!) directory

My Windows 7 Enterprise computer has been crashing fairly frequently recently, so I decided to boot up in safe mode and run the TrendMicro client I have installed. It froze about 10 minutes into the ...
1
vote
1answer
402 views

Make Bash's PS1 show original directory name and not symlink?

I currently have PS1='\W' but when in a symbolic link'd directory, the prompt shows the symlink name, how can I make PS1 to show the original directory name?
1
vote
2answers
758 views

Executable can't find correct files when called via symbolic link

I made a symbolic link to an executable with ln -s /usr/bin/mydir/myexec /usr/bin/myexec When I executed myexec in Bash, it does not load the proper files which are located in the original myexec's ...
1
vote
2answers
331 views

symbolic link to desktop in windows

I'm looking to make a symbolic link to my Desktop in windows. The reason I want this is that I've been doing a lot of web development on my local machine and I'm looking for a shortcut that I can type ...
1
vote
1answer
126 views

Possible to “move Windows XP” to data partition using following plan and symbolic links?

Background: I have Windows XP and Windows 7 on the same machine, on different partitions. Thus, I can perform operations on either OS while said OS is not running. Terminology: "XP:", "7:" and ...
1
vote
1answer
563 views

rsync functionality wanted - but i need symlinks, not copies

Is there a way to perform what rsync does (compiles many directories into a single directory) - But instead of copying files/sub-directories I need it to create a directory with symlinks that point ...