Guide is using Manjaro Linux 20.1. Usage of Symbolic Links should be the same on any unix system.
- Open
Disks
. - Select disk in left pane.
- Select
Additional partition options
(cogs icon). - Select
Edit Mount Options
. - Toggle OFF
User Session Defaults
. - Check ON
Mount at system startup
andShow in user interface
. - Change
Mount Point
to something meaningful, such as/mnt/ssd2
.
A symbolic link is an pointer to the original file or folder. Pointer may span file systems. Symbolic links may be removed, and the target remains. If target is moved, the symbolic link is broken.
This is especially helpful for moving some directories normally found in a users home directory to another disk to preserve space.
$ ln -s TARGET LINKNAME
--------------------
$ ln -s /mnt/ssd2/Projects Projects
$ ls -la
--------------------
lrwxrwxrwx 1 keiljr keiljr 18 Sep 26 23:48 Projects -> /mnt/ssd2/Projects
Safely removes symbolic link. Using the rm
command will work, but you could accidentally delete the target contents if you use the wrong optional parameters.
$ unlink FILE