Carl Lowenstein wrote:

> Here's some interesting data:
> # FC3 system
> [EMAIL PROTECTED] tmp]$ ls -l /bin/vi
> -rwxr-xr-x  1 root root 477136 Aug 10  2005 /bin/vi*
> [EMAIL PROTECTED] tmp]$ ls -l /usr/bin/vim
> -rwxr-xr-x  1 root root 2049704 Aug 10  2005 /usr/bin/vim*
> # FC6 system
> [EMAIL PROTECTED] ~]$ ls -l /bin/vi
> -rwxr-xr-x 1 root root 656468 Feb 27 04:41 /bin/vi
> [EMAIL PROTECTED] ~]$ ls -l /usr/bin/vim
> -rwxr-xr-x 1 root root 2734092 Feb 27 04:41 /usr/bin/vim
>
> If you ask $ vi --version and $ vim --version you find that they are
> compiled from the same source base but have very different built-in
> options.
>
> On the other hand, OpenSUSE 10.2 has the following chain of symlinks,
> all leading to the same place:
>
> /bin/vi -> /bin/vim
> /usr/bin/vi -> /usr/bin/vim -> /bin/vim
>
> I bet that Debian has yet another way of doing this, but I don't have
> one easily to hand.

~$ cat /etc/debian_version
4.0

~$ ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 20 2007-02-23 19:31 /usr/bin/vi ->
/etc/alternatives/vi

~$ ls -l /etc/alternatives/vi
lrwxrwxrwx 1 root root 18 2007-04-19 14:13 /etc/alternatives/vi ->
/usr/bin/vim.basic

~$ ls -l /usr/bin/vim.basic
-rwxr-xr-x 1 root root 1383816 2007-01-31 10:25 /usr/bin/vim.basic

:~$ ls -l /usr/bin/vim.tiny
-rwxr-xr-x 1 root root 990256 2007-01-31 10:24 /usr/bin/vim.tiny

~$ ls -l /usr/bin/vi*
lrwxrwxrwx 1 root root      20 2007-02-23 19:31 /usr/bin/vi ->
/etc/alternatives/vi
lrwxrwxrwx 1 root root      22 2007-02-23 19:31 /usr/bin/view ->
/etc/alternatives/view
-rwxr-xr-x 1 root root   18592 2007-01-12 09:28 /usr/bin/viewres
-rwxr-xr-x 1 root root 1383816 2007-01-31 10:25 /usr/bin/vim.basic
-rwxr-xr-x 1 root root  990256 2007-01-31 10:24 /usr/bin/vim.tiny
-rwxr-xr-x 1 root root    1600 2007-01-31 10:23 /usr/bin/vimtutor
-rwxr-xr-x 1 root root   99980 2006-10-24 11:27 /usr/bin/visualinfo


-- 
Neil Schneider                          pacneil_at_linuxgeek_dot_net
                                           http://www.paccomp.com
Key fingerprint = 67F0 E493 FCC0 0A8C 769B  8209 32D7 1DB1 8460 C47D

Terror is an efficiacious agent only when it doesn't last. In the long
run there is more terror in threats than in execution, for when you
get used to terror your emotions get dulled.- Mark Twain


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to