Документ взят из кэша поисковой машины. Адрес оригинального документа : http://comet.sai.msu.ru/UNIXhelp/tasks/links2.1.html
Дата изменения: Fri Jan 17 12:43:24 1997
Дата индексирования: Tue Oct 2 00:14:50 2012
Кодировка:

Поисковые слова: m 2
Examples of using the ln command

Examples of using the ln command

To link files in the same directory:

   ln notes circular

This creates a link circular to the file notes in the current working directory.


To make several links to a file in different directories:

   ln part1.txt ../helpdata/sect1 /public/helpdoc/part1

This links part1.txt to ../helpdata/sect1 and /public/helpdoc/part1.


To use ln together with special pattern matching characters:

   ln project/*.xdh $PWD

This links all the files with the extension ".xdh" in the sub-directory project to the current directory.

The value of the environment variable PWD is used instead of giving the path to the current directory.


[Home] [Search] [Index]