Back to the learning path

realpath

realpath: the real path Command details
Step 1/1: The full, real path

realpath turns a path into an absolute one from /, removing . and .. and replacing symbolic links with what they point to.

$ realpath ../notes.txt
Fundamentalsrealpath
The full path of a relative path
You are in tmp. Use realpath to print the absolute path of ../media/notes.txt.