Say that I setup a symbolic link:
ln -s /root/Public/mytextfile.txt /root/Public/myothertextfile.txt
is there a way to see what the target of myothertextfile.txt
is using the command line?
command-line-interfacelinuxsymbolic-link
Say that I setup a symbolic link:
ln -s /root/Public/mytextfile.txt /root/Public/myothertextfile.txt
is there a way to see what the target of myothertextfile.txt
is using the command line?
Best Answer
Use the
-f
flag to print the canonicalized version. For example:From
man readlink
: