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
552 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
3answers
3k views

Zipping files in OSX, want to 'resolve' symbolic links

I have a number of directories, they're all demos of web scripts I have created, the important fact is they all share resources. So I have created a global resources directory and symbolically linked ...
1
vote
2answers
1k 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
48 views

Why doesn't this Linux symlink work?

I'm trying to create a symbolic link for the file logs inside home/dir1/ to the file netlogs inside home/dir3/. The link is created but when I try to look at the contents of netlogs I got this error ...
1
vote
2answers
156 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
677 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
87 views

Can mklink make portable links?

Is there any way to create portable links in NTFS using mklink? Or it there a better solution? I want to be able to distribute an application in a zip file or folder copy where there is one "real" ...
1
vote
2answers
973 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
1answer
739 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
496 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
2answers
49 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
2k 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
3answers
740 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
825 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
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 ...
1
vote
2answers
86 views

Can't get symbolic link creation permissions to work under windows

I am trying to grant my user the privileges to create symbolic links. I ran secpol.msc and navigated to Local policies -> User rights assignment -> Create symbolic links. I have added my user's ...
1
vote
2answers
430 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
40 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
327 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
63 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
204 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
2answers
237 views

Show all symbolic links in a -> b format for 1 directory and sub directories

As title. How can I see a list of symbolic links in the format A -> B starting from a specified directory including all it's sub directories? This is on a Mac by the way.
1
vote
2answers
2k views

cp into destination hierarchy with symbolic link?

I am trying to write a site deploy script that will copy files like so: SOURCE . .. src/ html/ DEST . .. src/ html/ -> /var/www/ftproot/mysite I want the files in SOURCE html to go to DEST ...
1
vote
2answers
1k 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
1answer
284 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
1k 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
441 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
406 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
129 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
3k views

Equivalent for Windows 7 “mklink” on OS X?

Is there a feature on OS X that does the same as mklink under Windows 7? It can create symbolic links and hard links. I have just read about this tool to have Dropbox sync an application folder by ...
1
vote
2answers
1k views

Could I use directory junctions (symbolic link) to share music between 2 users in Windows 7

I want to have 2 users be able to use the same itunes library and be able to sync an ipod which ever user is logged in. I tried making both the My Music folders point to the same folder, but that ...
1
vote
2answers
64 views

Is there a way to create something like a symbolic link from a folder on a Windows machine to a directory on a Linux one?

I have a program that runs on a Windows VirtualBox VM, a and stores data in a specific folder. I would like to work up something like a symbolic link from this folder to a directory on a Linux server, ...
1
vote
1answer
413 views

Why doesn't XCOPY copy my junctions?

I'm trying to copy a Users Directory with XCOPY, but parts of it are not working. (I'm running as Administrator, in a command prompt which was started with Run As Administrator) The user directory ...
1
vote
2answers
4k views

Move AppData (via symlink?) to a different drive

I've been looking for ways to move AppData off my SSD but the symlink methods won't work since they attempt to make the link in the folder that my AppData folder is in. Since the folder exists and ...
1
vote
2answers
818 views

Creating symlink for C:\Program Files

Is it possible to create a symbolic link in Windows that redirects C:\Program Files to another drive?
1
vote
1answer
145 views

Deleted C:/Users when deleting symbolic links, can't login now. [Win7]

Running Windows 7 64-bit. I had symbolic links for C:/Program Files, C:/Program Files (x86), and C:/Users to D:/Program Files, D:/Program Files (x86), and D:/Users, respectively. Tried to solely ...
1
vote
1answer
109 views

How to create a symbolic/soft link to a file not a folder

Im trying to create a symbolic link to a text file with directory: C:\users\me\textfile.txt where the shortcut is in the same folder (for simplicity) using command: mklink /d ...
1
vote
2answers
259 views

Easiest way to restore symbolic links turned into text files?

I had folders with many symbolic links in them. Unfortunately after copying that around different filesystems, they've turned into plain text files with the link target as the contents. That is: ...
1
vote
3answers
226 views

How to copy MS Windows symlink files as is?

I made some symlinks in MS Windows using mklink /D command. But when copy it, Windows Explorer always perform deep copy instead copying symlink itself. How can I just copy the link? I need to send ...
1
vote
1answer
181 views

How can I create a symbolic link from Windows that will work under Linux?

I have a ASUS O!Play HD media center hard-drive thingie. It has a 2TB hard drive which is formatted in NTFS, and runs some version of linux. The UI for this thing is awful, and every time I turn it ...
1
vote
1answer
1k views

Why is this archive failing to create symlinks?

When I extract the archive Symfony_Standard_2.2.1.tgz using this command: $ tar xzf /home/tomas/downloads/Symfony_Standard_2.2.1.tgz I always get the errors: tar: doctrine.php: Cannot create ...
1
vote
1answer
4k views

Creating symbolic link in windows 7 from NAS device

We currently use Carbonite for our file back ups. I have an N.A.S. with a bunch of files on it that I would like Carbonite to back up in addition to the local files on the machine with the Carbonite ...
1
vote
2answers
3k views

Symbolic link or Junction to a Networked Samba Share

I have a samba share mounted as a network drive. However, I can't make any sort of symbolic link or junction point to it. Is this possible? When I try the following command: mklink /D X:\Samba\dir ...
1
vote
1answer
606 views

Symlinking some of my drive to another, AND syncing structures (Link Shell Extension?)

I'm going to install a SSD and a hard drive on my computer soon. It's a 128 GB SSD, and a 1 TB hard drive. I'm going to use the SSD as follows: It will store the OS and most applications. As for the ...
1
vote
1answer
696 views

Symlink path can be followed manually, but `cd` returns Permission denied

I am trying to access the directory /usr/software/test/agnostic. There are several symlinks involved in this path. As you can see by the below transcript, I am unable to cd directly to the path, but I ...
1
vote
1answer
3k views

Unix Copy (cp) without Symbolic Links

I want to copy my files but convert the symbolic links to hard links (ie. the actual file). How can I do this? Here's my code (that isn't working): cp -RL ${FROM_DIR} ${TO_DIR} Note: this is for ...
1
vote
1answer
4k views

Samba Linux shares — Why won't windows machines display/follow symbolic links?

I set up a generally working samba server on a Linux machine like this: useradd -g users netshareuser passwd netshareuser smbpasswd -a netshareuser (passwords are the same) mkdir /net/share ...
1
vote
2answers
442 views

Shared home folders between operating systems

After my hard drive calved yet again in my MacBook Pro, I decided to re-do my dual booting. My goal is to triple boot, with OSX 10.6.8 (installed), Windows 7 Home Premium and a flavour of Linux ...