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.[1] By default, the command creates a hard link, but with the -s command line option, it creates a symbolic link.[2] 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.[3] The command can create a symbolic link to non-existent file.[4]

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

  1. ^ Kernighan, Brian W.; Pike, Rob (1984). The Unix programming environment. Englewood Cliffs, N.J.: Prentice-Hall. p. 59. ISBN 013937681X.
  2. ^ "ln - The Open Group Base Specifications Issue 7". pubs.opengroup.org. The IEEE and The Open Group. Retrieved 7 August 2015.
  3. ^ "Why are hard links not allowed to directories in UNIX/Linux?". unix.stackexchange.com. Retrieved 7 August 2015.
  4. ^ Cite error: The named reference GNULnman was invoked but never defined (see the help page).
  5. ^ Cite error: The named reference SUS was invoked but never defined (see the help page).
  6. ^ ln(1) – Linux General Commands Manual
  7. ^ "Native Win32 ports of some GNU utilities". unxutils.sourceforge.net.
  8. ^ IBM. "IBM System i Version 7.2 Programming Qshell" (PDF). IBM. Retrieved 2020-09-05.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search