9/2/2023 0 Comments Unix link lns Create symbolic links instead of hard links. P For each source_file operand that names a file that is a symbolic link, create a (hard) link to the symbolic link itself. L For each source_file operand that names a file that is a symbolic link, create a hard link to the file referenced by the symbolic link. f Force existing destination pathnames to be removed to allow the link. The specification also specifies the command line options that must be supported: However, if the -s option is specified, a symbolic link is created. In the "single file" invocation the ln utility creates a new hard link (directory entry) for the source file specified by the source_file operand at the destination path specified by the target_file operand. The specification describes two ways of invoking the ln utility. A mostly identical document is part of POSIX. The ln utility on systems compliant with the Single Unix Specification is specified in the Shell and Utilities (XCU) document, which forms a part of the Single Unix Specification. By contrast, a symbolic link to an existing file will fail if the existing file is moved to a different location (or renamed). Such a symbolic link will fail until a file is created at the location which is contained by the symbolic link. The symbolic link may contain an arbitrary string which does not refer to the location of an existing file. The content of the symbolic link is therefore the destination path string, which can also be examined using the readlink command line utility.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |