How do I get the target of a symlink? April 26, 2023 by Tarik I think readlink is what you are looking for: File.readlink("path/to/symlink")