Ln (Unix)

ln
Original author(s)AT&T Bell Laboratories
Developer(s)Various open-source and commercial developers
Initial releaseNovember 3, 1971 (1971-11-03)
Operating systemUnix, Unix-like, IBM i
PlatformCross-platform
TypeCommand
Licensecoreutils: GPLv3+

ln is a shell command for creating a link file to an existing file or directory. By default, the command creates a hard link, but with the -s command line option, it creates a symbolic link. Most systems disallow a hard link to a directory since such links could disrupt the structure of a file system and interfere with the operation of other utilities. The command can create a symbolic link to non-existent file.

The command appeared in Issue 2 of the X/Open Portability Guidelines. The version in GNU Core Utilities was written by Mike Parker and David MacKenzie. The command is available in Windows via UnxUtils and has been ported to IBM i.