*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> unlink (1)              
Title
Content
Arch
Section
 

link(1)

Contents


NAME    [Toc]    [Back]

       link,  unlink  - Creates an additional directory entry for
       an existing file

SYNOPSIS    [Toc]    [Back]

       link file1 file2

       unlink file

STANDARDS    [Toc]    [Back]

       Interfaces documented on this reference  page  conform  to
       industry standards as follows:

       link:  XCU5.0

       unlink:  XCU5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

DESCRIPTION    [Toc]    [Back]

       The link command performs the link() system call to create
       an additional directory entry for an existing file, file1.
       In effect, the underlying file then has two  names,  file1
       and  file2  (either of these arguments can be a pathname).
       The old and new entries share equal access rights  to  the
       underlying file.

       The  unlink  command  performs the unlink() system call to
       remove a link to file created by link. The unlink  command
       removes  the directory entry specified by the file parameter
 and, if the entry is a hard link, decrements the  link
       count of the file referenced by the link.

       You should be familiar with the link() and unlink() system
       calls before you use these commands.

       The link and unlink commands do not issue  error  messages
       when the associated system call is unsuccessful.

NOTES    [Toc]    [Back]

       The  link  and  unlink commands cannot be used to link and
       unlink directories.

EXIT STATUS    [Toc]    [Back]

       The link and unlink commands both exit with the following:
       The  link() or unlink() system call succeeded.  Too few or
       too many arguments specified.  The link() or unlink() system
 call failed.

SEE ALSO    [Toc]    [Back]

      
      
       Commands:  fsck(8), ln(1)

       Functions:  link(2), unlink(2)



                                                          link(1)
[ Back ]
 Similar pages
Name OS Title
create_replica HP-UX Creates a replica of an existing directory in the specified clearinghouse
pxfcreat IRIX Creates a new file or rewrites an existing file
rpccp_add_member HP-UX Adds a member to a group in a name service entry; if the specified entry does not exist, creates the entry
rpccp_add_element HP-UX Adds an element to a profile in a name service entry; if the specified entry does not exist, creates the entry
newtag IRIX creates a new tag within an object relative to an existing tag
mkfset Tru64 Creates a fileset in an existing AdvFS domain
unlink HP-UX remove directory entry; delete file
dirent IRIX file system independent directory entry
unregisterhost IRIX remove the existing host entry in NIS hosts database
create_clearinghouse HP-UX Creates a clearinghouse on the local server system or makes an existing clearinghouse available
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service