I wanted to understand the difference between the executables
which has led me to
/usr/bin/, and there I've found the following symlinks:
/usr/bin/vi -> /etc/alternatives/vi /usr/bin/vim -> /etc/alternatives/vim
/etc/alternatives/, I saw that these names link back to
/etc/alternatives/vi -> /usr/bin/vim.gnome /etc/alternatives/vim -> /usr/bin/vim.gnome
After wondering a bit why is it so, I came to the conclusion that both are pointing to the same executable, hence they are completely the same.
However, something cought my eye that moment; this link:
/etc/alternatives/view -> /usr/bin/vim.gnome
accompanied with this link:
/usr/bin/view -> /etc/alternatives/view
Now, that's weird, since I know that when I run
view it's not the same as when I run
vim; it opens a read-only mode of the file given as an argument. Does
vim.gnome binary knows what was linking to it when executed, somehow?
(by the way, same issue is with
Do you have an explanation for that?