请输入您要查询的百科知识:

 

词条 Link (Unix)
释义

  1. Synopsis

  2. Standards

  3. See also

  4. External links

{{notability|date=September 2012}}{{lowercase}}

The link utility is a Unix command line program that creates a hard link from an existing directory entry to a new directory entry. It does no more than call the link() system function. It does not perform error checking before attempting to create the link. It returns an exit status that indicates whether the link was created (0 if successful, >0 if an error occurred). Creating a link to a directory entry that is itself a directory requires elevated privileges.

The ln command is more commonly used as it provides more features: it can create both hard links and symbolic links, and has error checking.

Synopsis

link (-s) source target

source
The pathname of an existing folder or file.
target
The name of the link to be created.

Note that source must specify an existing folder or file, and target must specify a non-existent entry in an existing directory.

Standards

The link command is part of the Single UNIX Specification (SUS), specified in the Shell and Utilities volume of the IEEE 1003.1-2001 standard.

See also

  • List of Unix commands
  • Unlink (Unix)

External links

  • IEEE Std 1003.1-2004 Shell & Utilities volume—list of SUS utilities.
  • [https://www.gnu.org/software/coreutils/manual/coreutils.html#link-invocation GNU Coreutils link] documentation.
{{unix commands}}{{Unix-stub}}

1 : Unix SUS2008 utilities

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/29 15:28:49