Symbolic Link For Games In Mac

  1. Ln S Symbolic Link Example
  2. Symbolic Link For Games In Mac Computer
  3. Symbolic Link For Games In Mac Pro
  4. Symbolic Link For Games In Mac 2017

Here’s why symbolic links, and this app, are great: Suppose you’re running out of space on your Mac machine. Instead of going through the somewhat-easy, but still-arduous process of uninstalling beefy apps or games and reinstalling them elsewhere, you can move the folder that’s eating up too. May 04, 2012 Symbolic links refer to a symbolic path indicating the abstract location of another file i.e. Symbolic links are files that act as pointers to other files. You can use the rm command to remove a symlink. Symbolic links are similar to aliases, in the sense that they are shortcuts that link to a specific file or folder. But symbolic links are often more useful than aliases: For example, if you put an alias in your Dropbox folder, it will sync just the alias file; put a sym link in that folder.

Running out of disk space is bad. Having multiple disk drives and not using them to their full potential is worse. Some applications have preferences that can be changed to have data stored in any location or disk drive you desire. Those are easy to make certain that you're using all of the resources available to you. But what about those applications that do not give you that option? Are you out of luck? Not so! Here's how to use symbolic links on macOS so that you can spread your data across as many drives as you like for any application you need.

Understanding symbolic links

A symbolic link (symlink for short) is a sub-option of the ln Unix command that allows for the 'linking' of files and directories across many locations on a filesystem. As per the ln man page:

'The ln utility creates a new directory entry (linked file) which has the same modes as the original file. It is useful for maintaining multiple copies of a file in many places at once without using up storage for the copies'; instead, a linkpoints' to the original copy. There are two types of links; hard links and symbolic links. How a link ``points' to a file is one of the differences between a hard and symbolic link.'

A symbolic link will redirect any access to its location to the linked counterpart elsewhere. Be it on the same filesystem or other disk drive or network location. The way this helps us is that by having a file or folder on Disk A pointing to a linked location on Disk B, we can 'trick' the operating system to think that we are accessing a file on Disk A while in fact the file lives on Disk B.

The end result is that you have essentially load balanced your data across multiple drives without need of informing any specific application.

Words of warning

Whenever you start playing around with the underlying operating system you run the risk of severely breaking things. Creating a bad link for an essential folder like /lib or something critical can cause your system to become inoperable.

Best use case is the desktop environment

Although you can perform these changes on any Mac, it would be best practice to do it on a machine that stays put on a desk. I'll be using an external disk drive enclosure called a Drobo that will be connected at all times for example. If you have a notebook that you are constantly bringing with you and disconnecting external storage, well, then when it comes time to get access to your data, you're disk will be missing and you won't be able to access it. If you have a workstation type environment that does its daily grinding in one place, then these suggestions are best suited for you.

Setting up symbolic links

You'll now need to get your hands dirty and use the terminal on macOS. If typing out commands is not your thing turn back now! For the rest of you brave souls, carry on!

In this example, I'll be showing how to link your default 'Downloads' folder to a second disk drive for data storage. These steps can be replicated for any file or folder you need to link to or from.

  1. Start terminal.
  2. Type pwd to make certain you are in your 'Home' directory,
  3. Type du -sh * to see how much data is being stored in each directory and file in your home directory.

  4. I want to move the 'Downloads' folder so I need to move the data that is already in the directory to the new location. I don't already have a directory called 'Downloads' on my new disk drive so we run the command cp -a Downloads/ /Volumes/Drobo/. to copy the entire directory to the new location. You need to replace the '/Volumes/Drobo' with what ever name you gave to the new location. You can alternatively use 'Finder' to copy the files over as well.
  5. Once you're certain the copy was successful, you can delete the original 'Downloads' folder by typing sudo rm -rf ./Downloads/. You'll be prompted for your password.
  6. Enter your password.
  7. Now we make the symbolic link by entering ln -s /Volumes/Drobo/Downloads Downloads again substituting your own new location for '/Volumes/Drobo/Downloads'.
  8. Now type ls -al to see that the link is working and pointing to the correct location.

  9. Now we restart 'Finder' by going to  > Force Quit to force it to see the changes.
  10. Select Finder.
  11. Click Relaunch.

Final comments

I have successfully moved my Downloads, my Documents, my iTunes backups etc… to a separate larger disk drive. Using multiple disks at once does increase complexity but it also increases efficiency and data access speeds when using multiple resources. I love the fact that macOS has full Unix underpinnings that gives me amazing capabilities and powerful commands at my disposal. How about you? How do you utilize the Unix underpinnings of macOS? Let us know in the comments!

macOS Catalina

Main

We may earn a commission for purchases using our links. Learn more.

on the up

The Chinese phone market rebounds with 2.5 million iPhones shipped in March

When you've had one of the worst months on record, the only way for Chinese phone sales is up. And that's exactly what's already happening.

I am a Mac/unix lover in a Windows world. So, while I have my Macs able to authenticate against a Windows 2000 Active Directory system, I still run into some squirrelly problems from time to time. The latest was trying to get OpenOffice to open documents on a user's Windows server share, and wanting to store the user's email on the server. To make life easier for the user, I decided to add an alias/link from her desktop to a folder in her Windows share. The problem was, OpenOffice does not understand MacOS links. To solve the problem, I went to the Terminal window, used df to find the correct path to her network directory and used ln -s to create the link. For example, starting with the dfSymbolicSymbolic link for games in mac pc output (trimmed for display width): I know that the directory I want is /Volumes -> users -> someusername -> sourcedirectory, so the ln command I used was: This puts a link named importantdirectory-shortcut on the user's desktop that takes them to /Volumes -> users -> someusersname -> importantdirectory. OpenOffice, understands and follows this link.

This works well because /Volumes -> users -> someusername is always mounted from the server, because OS X understand the directives from Active Directory to mount network drives when someone logs in. I extended this use of links to the user's Mail.app support directory under the user's Library folder, too.
I set up the user with her mail account. Then I quit Mail.app. I then went to /Users -> someusername -> Library. In that directory is a folder named Mail. I used the Finder to drag and drop a copy to her Windows share at /Volumes -> users -> someusername. I renamed the ~someusername -> Library -> Mail directory to 'save.Mail' for safekeeping, and then, once again, made a symbolic link using: This now puts a link in the Library folder to the network folder. Voila, if her Mac craps out for some reason, all her email is still saved on the network and available from another Mac, in an emergency. The added benefit is that the server gets backed up every evening.

I am thinking about moving her complete /Users -> someusername -> Library directory to the server. What would be really cool if someone who is more familiar with login hooks could help me do this automatically for all users who log in.
[robg adds: An earlier hint (the comments, in particular) has further discussion on the differences between symbolic links and aliases...]