External files in Obsidian without duplicating
I use symbolic links (symlinks) to add several folders to my Obsidian vault that are not in my vault's directory. For example, this website's content. As well as my Zotero PDF collection.
To create symlinks between folders on macOS, Linux, and Windows, you use the following commands:
macOS and Linux:
- Open the Terminal.
- Use the
ln
command to create a symlink. The syntax is:ln -s /path/to/target /path/to/symlink
- Replace
/path/to/target
with the full path to the original folder, and/path/to/symlink
with the location where you want the symlink to appear. In my case, my Obsidian folder.
Example:
ln -s /Users/johndoe/Documents/Project /Users/johndoe/Desktop/ProjectShortcut
Windows:
- Open Command Prompt or PowerShell with administrator privileges.
- Use the
mklink
command to create a symlink. The syntax is:mklink /D C:\path\to\symlink C:\path\to\target
/D
indicates a directory symlink. ReplaceC:\path\to\target
with the full path to the original folder andC:\path\to\symlink
with the location where you want the symlink to be created.
Example:
mklink /D C:\Users\johndoe\Desktop\ProjectShortcut C:\Users\johndoe\Documents\Project
These commands create a symlink between folders, allowing you to access the same content from different locations without duplicating files. It's pretty cool.
← anonymous kudos for permalink
- LinearMouse–the remedy to Logitech their dumb choices technology
- Today's Lack of Music with an Inherent Value musicology
- How we value music as an art form musicology
- Controlling Boox Network Traffic technology
- Lay out all Obsidian notes in a grid obsidian
- Highlight callouts in Obsidian obsidian
- AI-assisted music is not the problem musicology
- Mela to Markdown (Python script) scripts
- Display Airplay Now-Playing on old Android Tablet with MQTT smarthome
- Understanding Streaming Music Royalty Payments technology
- My Rating System and Review Criteria musicology
- Display recent files in Obsidian Vault obsidian
- Convert Spotify Library to Markdown scripts
- Things3 Overview in Obsidian obsidian
- List unlinked notes in Obsidian obsidian
- My Zotero research paper template obsidian