ln

使用法: ln [OPTION]... [-T] TARGET LINK_NAME   (1番目の形式)
または: ln [OPTION]... TARGET                  (2番目の形式)
または: ln [OPTION]... TARGET... DIRECTORY     (3番目の形式)
または: ln [OPTION]... -t DIRECTORY TARGET...  (4番目の形式)

In the 1st form, create a link to TARGET with the name LINK_NAME.
In the 2nd form, create a link to TARGET in the current directory.
In the 3rd and 4th forms, create links to each TARGET in DIRECTORY.

Create hard links by default, symbolic links with --symbolic.
By default, each destination (name of new link) should not already exist.

When creating hard links, each TARGET must exist.  Symbolic links
can hold arbitrary text; if later resolved, a relative link is
interpreted in relation to its parent directory.

既定ではハードリンク (Hard links) となります。これをシンボリックリンク (Symbolic links) とするには、-sオプションを指定します。

$ ln -s dir1 dir2

$ ls -l
合計 4
dir1
dir2 -> dir1