symbolic link, a type of file that is a reference to another file or folder

learn more… | top users | synonyms (1)

101
votes
2answers
149k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
21
votes
4answers
28k views

How to get the fully resolved path of a symbolic link in Terminal?

I have a tangled mess of python installations on my laptop. I was looking at the executables in /usr/local/bin and they are all symbolic links to ../../../Library...... There's some weird behavior ...
19
votes
3answers
3k views

Why is /tmp a symlink to /private/tmp?

Why is /tmp a symlink to /private/tmp on Mac OS X? In other words, why isn't /tmp just a regular directory, like on Linux or BSD? I understand how it works and I don't mind it, I'm just interested in ...
15
votes
2answers
31k views

How do I create a symbolic link to a directory with a space in it?

I was trying to create a symbolic link using the following command: ln -s "~/Foo Bar/" Foo ... but it didn't work (i.e. when I go into finder and try double clicking it, it says that it's pointing ...
12
votes
1answer
5k views

What's the difference between alias and link?

I see that the size of alias is 167.7kB, whereas symbolic link is just 4kB. What's the difference between the two, or what's the purpose of them? Which one is preferable? For the case that the ...
8
votes
5answers
8k views

Mac OS X - How to Symlink /home to /Users

For those of us who dabble in penguins and apples, it seems very worth while to be able to use /home paths either out of habbit or for those odd cases where the value may have been sync'd somewhere ...
5
votes
5answers
2k views

Why can't I use .app bundles symlinked into /Applications as default in the 'open with' dialog?

I have installed emacs with homebrew, with the --cocoa flag, which makes homebrew create an .app bundle in /usr/local/Cellar/emacs/<version>/Emacs.app. I have symlinked the .app bundle into ...
5
votes
1answer
6k views

How do I change back from MacPorts Python to system default version?

I used MacPorts to install a newer version of Python on my system (10.5.8 PPC), and then used the MacPorts select command to change the default invoked version of Python to the MP version. Now I want ...
5
votes
3answers
7k views

Symbolic link icons don't update

When a symlink is created, it gets the icon of the target folder (with the addition of a black arrow in the lower left corner). The issue I am having is that the symlink icon does not update when the ...
5
votes
1answer
343 views

Symlinked services in ~/Library/Services not working in Lion

Does anyone know how to make symlinked services work in Lion? I used to keep all my services under version control in SL and symlinked into ~/Library/Services and this stopped working when I installed ...
4
votes
2answers
257 views

How to recursively edit path of symlinks?

This is an additional question that began with this one - How to edit Symbolic Links in OS X? Now that I know how to edit the path symlinks point to, I'm trying to figure out how to do this ...
4
votes
3answers
2k views

OS X won't create any symbolic links, creates aliases instead

No matter how I try to create an symbolic link OS X refuses to play along and instead creates an alias. I've tried several tools and also through the terminal using the ln command. I am on a fresh ...
4
votes
1answer
2k views

How to make an alias (Cmd-L) using command line?

With Finder, Cmd-L is a short-cut to make an alias of a file/directory. How can I use the command line to do that? I tried 'ln -s', but it generates the 'Symbolic Link', not 'Alias'.
4
votes
2answers
480 views

Expand symlinked directory in finder

Is there a way to make it so that in list view in Finder a symbolically linked directory can be expanded like a regular directory? I would just switch to column view, but I'm using TextMate 2's file ...
4
votes
1answer
212 views

Difficulty setting the 'Open with app' to an alias

I am trying to set MacVim, installed via homebrew, to be the default HEX file editor. I started this task by creating an alias to MacVim.app located in /usr/local/Cellar/macvim/7.3-61 and placing the ...
4
votes
1answer
562 views

Find symbolic links (’s names) with Spotlight (Finder)

underwhelmed by the fact that OS X’s Aliases got really big with Mountain Lion (Lion?) I basically switched to using symbolic links instead. Now I’m just learning the hard way that Spotlight (or, ...
3
votes
3answers
141 views

Can I delete this recursive link to my Home directory?

My home directory has a symlink to my home directory. I'm not sure how it got there. Is it safe to delete? ~ steve$ ls -l steve lrwxr-xr-x 1 steve staff 12 Jun 21 2012 steve -> /Users/steve ...
3
votes
3answers
9k views

Restoring finder icon

I have moved certain sections (downloads, music, pictures) of my user directory from my SSD to my HDD via symlinks. I have successfully changed over the image of the folder which can be seen in the ...
3
votes
2answers
105 views

Trying to get a Symlink but it turns to be an Alias

I'm trying to move my Backup folder from the SSD to another internal HD via symlink using this command: ln -s /MacintoshHD/Backup ~/Library/"Application Support"/MobileSync the problem is, when i ...
3
votes
1answer
1k views

Command Line: create a link to folder and access files in this folder

I want to do this thing: Create a link to a folder. Put this link in home (~) directory Access files in linked folder from home directory (~/LinkToFolder/file) What is the best way to it? Main ...
3
votes
2answers
450 views

Moving large system directories to another drive and using symlink?

I have a SSD (Boot Partition) and a HDD (Data) for my Mac. I only bought a 128GB SSD thinking the boot partition wouldn't need a large drive, however I was mistaken. I find that Mail and MobileSync ...
3
votes
1answer
166 views

Tagging of symlinks

Is it possible to tag a symlink using the new OS X Mavericks tagging functionality (old labels functionality)? When I select a symlink in Finder, File => Tags... option is grayed-out. Is it possible ...
3
votes
4answers
2k views

Baldur's Gate Enhanced Edition (OS X) and Dropbox

I was trying to share the saved games of Baldur's Gate Enhanced Edition using Dropbox (on OS X). Configuration files are stored in ...
2
votes
1answer
2k views

wrong icon of Unix symbolic link in Finder

I am now on OS X 10.9, and I am not sure whether this issue also occurs on other versions. So, I have many symlinks in my file system (created by ln -s). Today I modified one of them with ln -f -s ...
2
votes
5answers
7k views

Is it a good idea to create a “soft link” from iTunes Library to an external hard drive to release hard drive space?

My iMac has a 1TB internal hard drive, and 300GB is allocated for Windows 7 using BootCamp. Of the 700GB, right now the space remaining is only about 20GB, and I do hope to create a new partition and ...
2
votes
2answers
262 views

Where does terminal look for its commands?

I've just installed pypy, and I've made a symlink from /pypy to my pypy installation. How can I turn this into a command, so that I can just type pypy myfile.py instead of having to type /pypy ...
2
votes
1answer
603 views

Space in Volume Name; can you remove?

I have two drives in my machine: An SSD with the OS on it a HDD with all my data. I have a symlink on the SSD for my home directory on the HDD so /Volumes/SSD/Users/Ross/ points to ...
2
votes
1answer
2k views

Can the DocSets installed by Xcode be moved to an external disk?

While attempting to clean up my Air's SSD, the estimable DaisyDisk showed me that 4 GB is being eaten up by Xcode DocSets. I like keeping my friends close and my SDK documentation closer, so I'd be ...
2
votes
1answer
4k views

Deleting home folders ~symbolic links in Mac OS X

I bought an SSD, so now I have SSD + traditional HD on my Mac. On SSD OS + Applications. On HD data. I wanted to keep applications and library on the SSD and move my home folder from SSD to the ...
2
votes
1answer
4k views

How do I delete/break a symbolic link in Lion?

I've made a symbolic link from my SSD to my HDD incorrectly and want to keep the folder on my SSD. How can I delete or break the symlink? Is there a Terminal command that will delete every symbolic ...
2
votes
1answer
5k views

How can you avoid error -43 when copying symlinked folder in Finder with a SAMBA share?

The context From a Mac running Mountain Lion, a share "Multimedia" served by QNAP NAS is mounted as root via SAMBA in the Finder. Let's say I create a symbolic link of a directory on the NAS such ...
2
votes
6answers
2k views

Symlinks broken with vmhgfs on fusion

When I use VMware Fusion with an Ubuntu guest (it worked long ago, but this problem has existed over several generations of ubuntu, at least including natty, oneiric and precise) and shared folders ...
2
votes
1answer
135 views

sym linking iTunes Media -> Music to external thumb drive

I'm out of space on my Macbook Air and thinking about ways of removing things. One idea is to put all my music (~100GB) on a big thumb drive (y, and back it up). I pretty much always have my keychain ...
2
votes
1answer
274 views

How to prevent TextMate from overwriting symbolic links?

In a web project I have multiple environments and a .htaccess.<env> file for each of them. In each of the environments I've made a symbolic link from .htaccess to the right file. Now, whenever ...
2
votes
1answer
2k views

Installed App with Brew Cask Over Existing Install, Did it Remove the Old App Files?

I upgraded to the latest OpenOffice (from 3.4.1 to 4.1.1) with brew-cask without realizing OpenOffice 4 was already installed: $ brew cask install openoffice ==> Downloading ...
2
votes
1answer
905 views

Can I remove user's home directory folders?

I have the following scenario: All of my files, documents etc. are saved on Copy.com. I have installed copy on my MacBooc Air all my files went to the following directory: /Users/username/Copy ...
2
votes
2answers
364 views

Finder treating symbolic links differently than terminal MacBook Pro Retina OS X 10.9.4

I created symbolic link jboss7 for hard link jboss-as-7.1.1.Final-downloaded and it worked fine in Finder. Then I made backup before modifying JBoss... ln -s jboss-as-7.1.1.Final-downloaded jboss7 ...
2
votes
1answer
4k views

Symlink User Folders - Can I keep original Sidebar Icons? [duplicate]

I have my user folders (Music, Movies and Pictures) stored on an external drive, so I used terminal to delete the existing user folders on the boot drive then created symlinks to these folders and ...
2
votes
2answers
467 views

How can I turn ~/Documents into a symlink?

I keep my Documents in an encrypted directory in Dropbox (~/Dropbox/encrypted), which I then mount at ~/clear when I log in. On my other Macs, I have change ~/Documents to a symlink that points at ...
2
votes
1answer
1k views

relocating documents folder of ios applications

I have a jailbroken iPhone 4s with iOS 5.1.1. One of the things that always bothers me is that apps can't share files with each other. So I thought I can circumvent that behavior by creating a ...
2
votes
2answers
974 views

How to duplicate an entire dropbox directory tree to skydrive?

I've got a directory tree set up in my Dropbox folder. For redundancy, I'd like to duplicate that entire tree in SkyDrive. I'd like everything to update and sync automatically (from Dropbox to ...
2
votes
1answer
839 views

Is it safe to Symlink your applications folder?

If you had a NAS and you were going to store all your applications on there, would it be safe to - on the computers accessing it - replace their application folder with a symlink to the folder on the ...
2
votes
1answer
41 views

Are there any good reasons to NOT symlink 'System Folders' like Photos or Music?

I am currently adopting oDrive for all my cloud storage needs. The only restriction that oDrive has it that it creates a folder called 'ODRIVE' on your computer. Everything that you want to sync has ...
2
votes
0answers
69 views

How to Restore the Mail Symlinks to External Drive on 10.11?

My Mac Mail has been working using an external drive for the library and all messages since 2013. However I upgraded to 10.11 today and need to find a way to reference everything on the external ...
2
votes
0answers
126 views

How can I customize the symlinks that MacPorts creates/deletes when using its `port select --set <group>` command?

I use MacPorts to manage certain *nix packages on my Mac. One such Mac has multiple Python versions installed. When I switch between Python versions, I use a command like: port select --set python ...
2
votes
0answers
158 views

Spotlight not finding .app created with appify

I've used a script called appify described here https://mathiasbynens.be/notes/shell-script-mac-apps to create /Applications/Emacs.app that runs the actual Emacs.app at ...
2
votes
0answers
26 views

Emacs does not auto restart after reboot?

I install Emacs via Homebrew and create a symbolic link: /Applications/Emacs.app -> /usr/local/Cellar/emacs/24.3/Emacs.app What does not seem to work properly is that after restarting, other ...
2
votes
1answer
669 views

can I point my Pictures folder to a folder in an external hard drive?

I would like to save some space on my laptop and to do so I was thinking of moving my Pictures folder on an external hard drive. As OSX doesn't want me to mess around with the main folders in my home, ...
1
vote
2answers
291 views

symbolic link not created

All my docs are in: /Users/Joe/Documents/Mydocs I want to put them on dropbox through symbolic link so I created this empty folder: /Users/Joe/Dropbox/Mydocs Then used this command to create a ...
1
vote
2answers
566 views

Can the Finder be tricked into assigning symlinks and aliases different icons?

It seems to me that the Finder does not (on the surface) distinguish between aliases and symbolic links. (In particular, in the Get Info window for a symlink the Finder claims the symlink is an ...