hide random home http://www.fmi.uni-passau.de/archive/doc/unix/unixhelp/Unixhelp/tasks_links3.1.html (Einblicke ins Internet, 10/1995)

Examples of using the ln command

Examples of using the ln command

1. To link a directory into your current directory:

   ln -s $HOME/accounts/may

This links the directory $HOME/accounts/may into your current working directory. This link will have the same name may as the directory it points to.

2. To link several directories into a subdirectory:

   ln -s $HOME/hyperhelp $HOME/metacard experimental

This links the directories $HOME/hyperhelp and $HOME/metacard into the subdirectory experimental.