Questions tagged [symlink]

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

Filter by
Sorted by
Tagged with
370
votes
6answers
519k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
1
vote
0answers
15 views

Any way to make symlinks or aliases resolve over a network with macOS?

So I like to move my big folders from the home folder on the macOS System SSD to a hard drive and keep the SSD mainly for the system files and apps, a fairly common practice. Problem is when I want to ...
0
votes
1answer
28 views

Create a symlink pointing to a variable filepath

I am using MacVim installed via homebrew. The absolute path to the app is /usr/local/Cellar/macvim/xxxxxx/MacVim.app, with xxxxxx the version number. MacVim version number is updated often. Now I ...
15
votes
5answers
16k 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 ...
0
votes
1answer
26 views

Trying to create a symbolic link in OS 10.14.6

I'm trying to install a symbolic link but when I enter the command I think should work ("sudo ln -s /Applications/harris/idl87/lib/xop/xop2.4/xop /usr/local/bin/xop"), I get no response at all. ????
0
votes
0answers
33 views

Under Catalina, should I use HFS+ or APFS when symlinking media folders to external drive

As I'm planning to install an SSD into my iMac with smaller capacity than the internal Fusion Drive its replacing, I will need to symlink my Movies, Music and Pictures folders to an external mains ...
0
votes
0answers
15 views

rsync options for maintaining app bundles' symlinks and metadata when copying onto and back from SMB shares?

In the past I've generally used rsync -a to primarily copy data around, but I'm shifting gears to a Windows Server 2019 platform with SMB shares to receive everything from app bundle backups to Photos ...
-1
votes
2answers
45 views

How to properly symlink files in the ~/Library/Preferences

Many apps store their settings in a file under ~/Library/Preferences. I want to version these files in my dotfiles repo. I like my dotfiles repo to be in its own tidy folder so my general approach to ...
0
votes
0answers
78 views

Archive Utility: error 21 - is a directory

I have a zip file that contains symlink, every zip utility able to unpack it (unzip WithSymlink.zip works) but when I try to simply double click on it I et the error error 21 - is a directory Why is ...
0
votes
0answers
42 views

nvm (node version manager) nvm,node,npm not found

I did install nvm regarding the documentation, then installed the latest LTS node, nvm install 12.16.1 and globally installed yarn. everything was working well, the node -v and npm -v and which node ...
14
votes
5answers
6k 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 ...
3
votes
1answer
76 views

Is there a GUI difftool that does symlinks?

Let's say I have some directories with symlinks in them. . ├── dirA │   ├── file013 │   └── file212 └── dirB ├── file013 └── file212 2 directories, 4 files The symlinks are pointing to ...
1
vote
1answer
55 views

How to move Photos Library and associated iPhotos Library to another drive without breaking links?

I wish to move my Photos Library to a secondary drive, both formatted with APFS. I still have the iPhotos Library from where the pictures were imported. I'm concerned that when moving the Photos and ...
0
votes
1answer
31 views

How to create a custom readable symlink out of a sandboxed container?

How do I create a readable symlink from within a ~/Library/Containers/.../Data/ app folder to a file outside? It seems that due to the macOS sandboxing mechanism, this doesn't work out of the box. ...
1
vote
0answers
85 views

Mailbox set as read-only when symlinking from an external storage

I have multiple mailboxes and I want to save space by moving some of them in an external storage. I'd like to still be able to view the email using Mail.app even if said mailbox is now located in an ...
0
votes
1answer
32 views

Any better way to move app library path to external drive than using symbolic link?

I am running MacOS 10.14.5. I used symbolic links a lot to free up my internal drive. My internal drive is almost full and I need to free up some spaces again. Normally, the symbolic links solution ...
4
votes
2answers
705 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 ...
1
vote
1answer
91 views

MacOS Mail cannot access folders on external drive via symlinks

My 2012 Mac Mini is running High Sierra, and I have copied older mail folders to a partition of an external drive. In the User mail folder, I then placed symlinks. In Finder, the symlinks show the ...
39
votes
5answers
8k 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 ...
6
votes
1answer
2k 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 ...
1
vote
3answers
108 views

Symlinked Dotfiles Are Not Working

I'm on macOS Catalina and I'm trying to move all my "dotfiles" into a folder, where I can place them under version control, then symlink them back into the home folder. I've created a hidden "....
0
votes
0answers
12 views

How to selectively remove sym-linked files from a certain directly

In /usr/local/include , symlinked files from ../Cellar/ and /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ as follows; rwxr-xr-x 1 user admin 48B May 29 2018 unitypes.h -&...
7
votes
3answers
6k views

Relocating /Users folder in MacOS 10.15 (Catalina)?

In the past when we wanted to offload the /Users folder from the internal disk we simply created a symbolic link for /Users that pointed to /Volumes/External_Drive_Name/Users. The Mac in question is a ...
0
votes
2answers
25 views

Organizing Favourites in Finder with Symlinks and colons

On my machine I have repeating patterns of directories. E.g,: notes/2019-01 records/expenses/2019-01 records/taxes/2019-01 customer/project/notes/2019-01 Links in the Favourites bar show up as: ...
2
votes
2answers
268 views

Copy directory structure and symlink files (alternative to `cp -as`)

I'm looking for how to recursively copy a directory structure and then fill the copy with symlinks to the corresponding files from the source directory. This has a simple solution in Linux in the form ...
0
votes
1answer
64 views

Why is ~/Documents a symlink to itself, and how should this be fixed?

I'm a programmer diagnosing a customer's issue with our software. We're having some problems writing into the user's Documents folder in macOS Mojave 10.14.6.* It turns out that the customer's ~/...
0
votes
1answer
27 views

Unexpected behavior of bash script used to sync dotfiles

I'm using essentially this script for keeping my dotfiles under version control. I recently added a snippets folder inside my emacs.d directory and listed it as one of the things that should be ...
0
votes
0answers
19 views

Does Spotlight index the contents of symlinks?

From what I can tell, Finder searches do not follow symlinks. Is this expected behavior? I can't find it documented anywhere. Background: I've been syncing some PDFs using Dropbox (location A), but ...
2
votes
1answer
109 views

Permission denied for ls -l in a folder with symlinks

I have a folder hierarchy parent_folder -> inner_folder -> innermost_folder The steps I followed are (as a sudo user): created a symlink pointing to parent_folder set the permissions of the ...
1
vote
1answer
21 views

Turning on FileVault with a symlinked directory

Running Mojave (10.14.6). There's not enough room on my SSD for my Music, Pictures, and Movies. I have those on an external drive. I have not yet turned on FileVault. If I create symlinks for those ...
2
votes
1answer
175 views

On Catalina, what should /private/tmp look like?

This is my /tmp and /private: # ls -lA /tmp /private/ lrwxr-xr-x@ 1 root admin 11 Oct 18 18:48 /tmp -> private/tmp /private/: total 0 drwxr-xr-x 121 root wheel 3872 Oct 21 13:27 etc drwxr-xr-...
2
votes
2answers
55 views

How to remove symlinks created after a specific date?

Say I did a ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/* /usr/local/include/ Now I regret it. How can I delete all these links? The good news is I created them today, so ...
5
votes
2answers
2k views

Sync Desktop now that Dropbox no longer supports symlinks

How can I have my Desktop sync over Dropbox? Previously, I used symlinks to have Dropbox sync the Desktop and Documents folders while keeping them in their actual locations. Dropbox no longer ...
0
votes
0answers
603 views

ld: library not found for -lSystem

New to Mac. I am going to install a software and running make, returns the error: $ make gcc -I/Users/username/softwarename/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/...
1
vote
0answers
30 views

After upgrade to 10.15 Cataline /media folder is gone

Previously I had used /media to mount remote filesystems.. after upgrading today I find that the directory is gone and / is read only. Is there a workaround for this? The filesystem I had mounted ...
0
votes
0answers
30 views

Symlink works differently on macOS than in linux

I have recently begun to work with Apple laptops and macOS. I wrote a script that symlinks my files and configs, and it works for my linux laptop. However, something went wrong in macOS. I narrowed ...
1
vote
2answers
938 views

Applescript creating Sym link with spaces in the path

I'm trying to create a sym link to a network directory when i log in. This is working for a couple of other directories without spaces in the name, but for the life of me I cannot get this one ...
1
vote
2answers
74 views

How can I change the default Documents and Pictures directories to symlinks?

I have most of my important files under Dropbox, like Pictures and Documents. It would be great if I could set the default Documents and Pictures directories to either point under the respective ...
1
vote
1answer
99 views

Symlinks became files, containing relative paths, within an app bundle, why? How to fix?

I discovered an interesting form of corruption within some application bundles which had been stored on a file server for months and years. The application bundles were installers for various macOS ...
1
vote
0answers
457 views

Network drive in finder sidebar disappears, is there's a way keep them in unmounted state?

I use Automator to mount my network drives on boot by following instructions from this link: http://osxdaily.com/2012/05/04/automatically-connect-to-network-drive-mac-os-x/ and then drag the drives ...
2
votes
2answers
546 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, ...
0
votes
1answer
123 views

Show original shortcut in MacOS 10.14

I often make symbolic links of folders. I recently had to change my laptop and move from Sierra to Mojave. In the old OS I used to type Cmd + R to go to the original folder. This seems to no longer ...
3
votes
3answers
237 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 ...
2
votes
1answer
2k 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
0answers
772 views

MacOS Mojave: How do I change the default /Users directory for ALL users logging in?

I've seen this question answered in various forms for other iterations of Mac OS X, but Mojave is proving a bit more challenging. In short: I have several dual drive systems, (SSD and HDD) with the ...
2
votes
3answers
6k 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 ...
1
vote
0answers
209 views

How to move shared albums data from Photos externally

I recently moved my Photos library to an external SSD. Unfortunately shared album data still lives locally inside ~/Library/Containers/com.apple.cloudphotosd/Data/Library/Application Support/com.apple....
1
vote
1answer
281 views

After upgrading weechat using Homebrew, brew says formula built but weechat was not symlinked

I installed weechat 1.9(an IRC client) with brew a long time ago. Today I was trying to update the program to the latest version with 'brew upgrade weechat'. The whole upgrading process was successful,...
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 ...
-2
votes
1answer
398 views

How to get xcode simulator working after moving Library/Developer to an external harddrive

How do I get device simulator working in xcode after moving the Library/Developer file to an external hard drive and symlinking it. Yes, I've already symlinked the files from Developer.