Linking with ln -s (soft links)

Now suppose you want to pawn off your entire workload on your new helper. Rather than just giving him access to a single file, you'll want to give him access to your entire directory. You can do this using soft links (created with ln -s), which essentially provide other users with a shortcut to the directory you specify.

Like hard links, soft links allow a file to be in more than one place at a time; however, with soft links, there's only one copy of it and, with soft links, you can link directories as well. The linked file or directory is dependent on the original one—that is, if the original file or directory is deleted, the linked file or directory will no longer be available.

Soft links are particularly handy ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.