기술 성공, 실패 기록소

Finding the original file of a symbolic link 본문

linux 및 기타 os

Finding the original file of a symbolic link

sunlab 2021. 8. 10. 19:10
728x90

https://unix.stackexchange.com/questions/167631/finding-the-original-file-of-a-symbolic-link/167632

 

Finding the original file of a symbolic link

So let's say I have a symbolic link of a file in my home directory to another file on a different partition. How would I find the target location of the linked file? By this, I mean, let's say I have

unix.stackexchange.com

readlink -f /path/file

 

ls -l /path/file