Questions tagged [symlink]

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

Filter by
Sorted by
Tagged with
344
votes
5answers
485k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
46
votes
5answers
61k 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 ...
35
votes
4answers
7k 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 ...
24
votes
2answers
62k 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 ...
24
votes
2answers
11k 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 link/...
14
votes
5answers
14k 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 ...
12
votes
5answers
5k views

Symlink Google Drive

I want to sync folders that are on my Mac to Google Drive, without having to drag the folders to the Google Drive folder and preserving my folder structure on my Mac. I assumed you would have to ...
7
votes
4answers
10k 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 ...
6
votes
1answer
7k 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
4answers
5k 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 ...
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
4answers
11k 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 ...
5
votes
1answer
4k 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 http://downloads....
5
votes
1answer
514 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 ...
5
votes
1answer
361 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
519 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
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
1answer
3k views

How to edit Symbolic Links in OS X?

I had painstakingly gone through and created symlnks to a whole host of files in my system. I couldn't use aliases because they were failing to be copied with RSync, and also certain apps I use to ...
4
votes
2answers
6k views

Install new NANO (2.4) using BREW but still uses old versions (symbolic link not created?)

I installed NANO 2.4 but my OS X is still using 2.0. I beleive its something to do with the symbolic link that wasn't created. I first tapped the homebrew/dupes so i could brew install nano ~ brew ...
4
votes
2answers
653 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
701 views

Why is the symlink I created inside an application container to allow for external storage not working?

I was trying to get around Vemedio's Instacast limitation on storage location by symlinking (ln -s) the Episodes folder in ~Library/Containers/com.vemedio.osx.Instacast/Data/Documents/Instacast to ...
4
votes
1answer
1k 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
169 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
1answer
3k 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 (...
3
votes
5answers
10k 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 ...
3
votes
4answers
5k views

Hard links on High Sierra

I have been using hard links, as described here, for linking my important folders to my Dropbox. A very useful trick for backing up without messing up your preferred directory structure. After my ...
3
votes
2answers
847 views

symbolic link vs. alias

Disclaimer: I work with programmers, but am not one myself and have no real / formal knowledge of how an OS works; please be patient if the following makes plain my ignorance :) I am trying to ...
3
votes
2answers
450 views

Create a symbolic link do navigate with cd

Is it possible to create a symbolic link to easier change directories? like ln -s /Users/mles/Documents /usr/local/bin/d so I can cd d instead of cd ~/Documents?
3
votes
1answer
3k 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
1answer
6k 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 ...
3
votes
2answers
515 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
3answers
147 views

Why have symbolic links between files in folders at same depth?

I noticed that in macOS, the /usr/local/Cellar folder contains binaries installed using Homebrew, and that /usr/local/opt has symbolic links to a bunch of those binaries. I haven't used symbolic links ...
3
votes
2answers
777 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
515 views

Best practices to move macOS Mail.app storage to an external drive?

I have a system with fairly small internal storage (500GB) so I have attached a reasonably quick external storage device (256GB) that will be constantly mounted. To free up space on the internal ...
3
votes
1answer
183 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
3answers
107 views

How to work with 2 Applications folders?

I have an internal 250 GB SSD. this drive was filling up and I bought an external 4 TB external hard drive. My Applications folder on my SSD was taking up a lot of space so I decided to create an ...
3
votes
0answers
28 views

Tradeoffs between symlinking vs changing path to $HOME

I'm moving my user account $HOME to a different drive. The Apple-blessed procedure is outlined here. An alternative would be just to symlink from the old to the new location. Are there any ...
3
votes
0answers
49 views

Printer deamon creates hundreds of symlinks

Today I stumbled over hundreds of symbolic links in my OS X /tmp folder. > … lrwxr-xr-x 1 root wheel 66B 10 Mai 11:42 554f27eaca409 -> /private/etc/cups/ppd/...
3
votes
0answers
403 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 ...
3
votes
4answers
3k 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 ~/Library/Containers/com.beamdog.baldursgateenhancededition/Data/...
2
votes
2answers
329 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 myfile....
2
votes
1answer
1k 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 /Volumes/...
2
votes
1answer
140 views

Adding symlink to /usr/bin

I'm trying to add python3 to my path by adding a symlink but it's erroring and I'm not sure why. /usr/bin $ sudo su sh-3.2# ln -s /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 /usr/...
2
votes
1answer
5k views

Permission denied for symbolic link

I'm creating a symbolic link with the following applescript: on run do shell script "rm /usr/bin/ant" with administrator privileges do shell script "ln -s /Users/hordine/software/apache-ant-1....
2
votes
2answers
378 views

How does macOS implement symbolic link in Mojave on FAT32 filesystems?

I remember in the past, not all types of aliases (as in the macOS feature) can be created on all filesystems. This is because symbolic link (as in the type of file) is a special Unix file type, ...
2
votes
1answer
2k views

Bash script for creating symbolic links

I am relatively new to bash and am having some trouble with a script I am trying to write. After spending the last hour or so researching and trying new techniques, I am still unable to do what I ...
2
votes
1answer
4k views

Symlink for OneDrive

I did research beforehand on google How to Sync Any Folder to the Cloud With Symbolic Links and on Ask Different, but I still cannot find an answer to this specific question. The file I want 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
3answers
5k views

Unable to symlink /Users in OS X El Capitan

I#m running OS X El Capitan and want to symlink /Users to /home sudo ln -sf /Users /home fails with ln: home/Users: Operation not supported Why does this fail? Could this be related to other OS ...