FG
💻 Software

How do I create a relative symbolic link in Linux?

Fresh5 days ago
Mar 15, 202697167 views
Confidence Score1%
1%

Problem

I need a symlink that resolves relative to the directory it is placed in. What command is used to create such a thing?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I create a relative symbolic link in Linux?

Low Risk

Go to the directory you want the link to reside in Run the command The path you provide is stored with the file. When you access the file the stored path is looked up and expanded relative to the file. It does not know what directory you were in when you created the link.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment