The command in question is:
sudo ln -s /usr/lib/x86_64-linux-gnu/foo.so /usr/lib/
I read this article about
ln, which indicates that the latter argument can be either a name or a directory. In this case, with it being a directory, my assumption is that the above command causes access to
/usr/lib/foo.so to be directed to
/usr/lib/x86_64-linux-gnu/foo.so. If that's true, what is the value in omitting the name in the latter argument vs explicitly including the name (e.g.,
/usr/lib/foo.so)? Is this just a common shortcut, or is there a value in doing this? Also, does creating the symbolic link in this way have any other effect that it wouldn't if the name was included in the latter argument?