Ln (Unix)
| ln | |
|---|---|
Example usage of ln utility | |
| Original author(s) | AT&T Bell Laboratories |
| Developer(s) | Various open-source and commercial developers |
| Initial release | November 3, 1971 |
| Operating system | Unix, Unix-like, IBM i |
| Platform | Cross-platform |
| Type | Command |
| License | coreutils: 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.