On 2009-05-27 14:08 (+0530), Prasad Joshi wrote:
> Check out all the aliases defined on your system (alias command).
Or use Bash shell's "type" command in an interactive shell:
$ type vi
vi is /usr/bin/vi
$ type ls
ls is aliased to `ls --color=auto'
> pra...@prasad-laptop:~/bzr/ftl$ which vi
> /usr/bin/vi
>
> pra...@prasad-laptop:~/bzr/ftl$ ls -L /usr/bin/vi
> /usr/bin/vi
> pra...@prasad-laptop:~/bzr/ftl$ ls -l /usr/bin/vi
> lrwxrwxrwx 1 root root 20 2009-03-04 23:10 /usr/bin/vi ->
> /etc/alternatives/vi
>
> pra...@prasad-laptop:~/bzr/ftl$ ls -l /etc/alternatives/vi
> lrwxrwxrwx 1 root root 18 2009-03-04 18:32 /etc/alternatives/vi ->
> /usr/bin/vim.basic
>
> pra...@prasad-laptop:~/bzr/ftl$ ls -l /usr/bin/vim.basic
> -rwxr-xr-x 1 root root 1631012 2009-01-08 07:57 /usr/bin/vim.basic
>
> So, on my machine invoking vi starts a vim.basic session.
If one is only interested in the final symlink target then "readlink -f"
is a quicker way:
$ readlink -f $(which vi)
/usr/bin/vim.gtk
$ ls -l $(readlink -f $(which vi))
-rwxr-xr-x 1 root root 1955024 2008-10-17 21:12 /usr/bin/vim.gtk
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---