link(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

link(8)

System Administration Commands                                         link(8)



NAME
       link, unlink - link and unlink files

SYNOPSIS
       /usr/sbin/link existing-file new-file


       /usr/xpg4/bin/link existing-file new-file


       /usr/sbin/unlink file

DESCRIPTION
       The link and unlink commands link and unlink files.


       Use  link  to  create  a  new file that points to an existing file. The
       existing-file and new-file  operands  specify  the  existing  file  and
       newly-created files. See OPERANDS.


       Note  that  the  Oracle  Solaris operating system does not support hard
       links to directories, only to files. Symbolic links to directories  may
       be created with ln(1) instead.


       link and unlink directly invoke the link(2) and unlink(2) system calls,
       performing exactly what they are told to do and  abandoning  all  error
       checking. This differs from the ln(1) command. See ln(1).


       While  linked  files  can  be  removed using unlink, it is safer to use
       rm(1) instead. See rm(1).

   /usr/xpg4/bin/link
       If the existing file being hard linked is itself a symbolic link,  then
       the  newly created file (new-file) will be a hard link to the file ref‐
       erenced by the symbolic link, not to the symbolic  link  object  itself
       (existing-file).

OPERANDS
       The following operands are supported:

       existing-file    Specifies the name of the existing file to be linked.


       file             Specifies the name of the file to be unlinked.


       new-file         Specifies the name of newly created (linked) file.


ENVIRONMENT VARIABLES
       See  environ(7) for descriptions of the following environment variables
       that affect the execution of link: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES,
       and NLSPATH.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os


   /usr/xpg4/bin/link
       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE  VALUE  _  Availabilitysystem/xopen/xcu4 _ Interface Stability‐
       Committed _ StandardSee standards(7).


SEE ALSO
       ln(1), rm(1),  link(2),  unlink(2),  attributes(7),  environ(7),  stan‐
       dards(7)



Oracle Solaris 11.4               27 Mar 2020                          link(8)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3