Tuesday, September 13, 2016

Ubuntu: Vim and vi's True Identity

Command:

$ ls -l /usr/bin/vim


Result:

lrwxrwxrwx 1 root root 21 May 15 13:42 /usr/bin/vim -> /etc/alternatives/vim


Command:

$ ls -l /usr/bin/vi


Result:

lrwxrwxrwx 1 root root 20 May 15 13:37 /usr/bin/vi -> /etc/alternatives/vi


Command:

$ ls -l /etc/alternatives/vim


Result:

lrwxrwxrwx 1 root root 18 May 15 13:42 /etc/alternatives/vim -> /usr/bin/vim.basic


Command:

$ ls -l /etc/alternatives/vi


Result:

lrwxrwxrwx 1 root root 18 May 15 13:42 /etc/alternatives/vi -> /usr/bin/vim.basic