Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
if your distribution uses the "alternatives" indirection facility, you can set it system-wide by changing the symlink in: /etc/alternatives/
e.g.
lrwxrwxrwx 1 root root 12 Oct 29 05:29 /etc/alternatives/editor -> /usr/bin/vim
vi flavor is also set in /etc/alternatives:
lrwxrwxrwx 1 root root 18 Aug 5 2006 /etc/alternatives/vi -> /usr/bin/vim.basic
this works by replacing the traditional locations with symlinks referencing another level of symlinks in /etc/alternatives.
/usr/bin/vi is now a symlink to /etc/alternatives/vi, so whatever /etc/alternatives/vi becomes the flavor executed when people simply type 'vi' into bash.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.