TIL: use the readlink command to resolve symbolic links to executables.
Use the -f option to follow the link recursively.
# find the path to the youtube-dl script.
readlink -f $(which yt-dlp)
TIL: use the readlink command to resolve symbolic links to executables.
Use the -f option to follow the link recursively.
# find the path to the youtube-dl script.
readlink -f $(which yt-dlp)