FG
💻 Software

How get full path to target of link

Fresh5 days ago
Mar 15, 202614750 views
Confidence Score0%
0%

Problem

If I have a symbolic link created with . How can I in a script that sees only the link get ? What I want to achieve in the script is before I do .

Error Output

/var/opt/foo

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How get full path to target of link

Low Risk

is now the target of the link, exactly as it was stored in the filesystem. Symlinks can be relative, though, so this would be better for normal usage: Note that this uses from GNU Coreutils, which may not exist in BSD and other systems. Edit: works …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment