The administrator can create symbolic links to organize storage without corrupting file systems; for example, a web mirror can contain thousands of hosted sites, and dozens of drives are installed:
/mnt/disk1/ /mnt/disk2/ ...
and you want to store data in your /var/www/htdocs/ without worrying about which drive stores their data.
/var/www/htdocs/debian -> /mnt/disk1/debian /var/www/htdocs/ubuntu -> /mnt/disk2/ubuntu /var/www/htdocs/centos -> /mnt/disk9/centos
Secondly, you may have a "last boot"; your users upload photos or software packages, and you want http://example.com/HOT_STUFF always be the most recent photo uploaded. You can set symlink($new_upload, $HOT_STUFF); , and users donโt need more than one URL to see the newest thing.
Thirdly, Debian and Ubuntu use the update-alternatives mechanism to immediately install several versions of the tool and still allow the administrator to specify which one is the default. eg.
$ ls -l /usr/bin/vi lrwxrwxrwx 1 root root 20 2011-01-11 01:07 /usr/bin/vi -> /etc/alternatives/vi $ ls -l /etc/alternatives/vi lrwxrwxrwx 1 root root 18 2011-01-11 01:07 /etc/alternatives/vi -> /usr/bin/vim.basic $ ls -l /usr/bin/vim.basic -rwxr-xr-x 1 root root 1866904 2010-09-28 04:06 /usr/bin/vim.basic
This is a bit cool, but the configuration is saved in the directory for each system /etc/ , and the usual path /usr/bin/vi will do what is very similar to vi when there are many options available (nvi, elvis, vim, AT & T vi etc.)
sarnold
source share