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

  man pages->HP-UX 11i man pages -> symlink (4)              
Title
Content
Arch
Section
 

Contents


 symlink(4)                                                       symlink(4)




 NAME    [Toc]    [Back]
      symlink - symbolic link

 DESCRIPTION    [Toc]    [Back]
      A symbolic (or soft ) link is a file whose name indirectly refers
      (points) to a relative or absolute path name.

      During path name interpretation, a symbolic link to a relative path
      name is expanded to the path name being interpreted, and a symbolic
      link to an absolute path name is replaced with the path name being
      interpreted.

      Thus, given the path name /a/b/c/d:

           If c is a symbolic link to a relative path name such as ../x/y,
           the path name is interpreted as /a/b/../x/y/d.

           If c is a symbolic link to an absolute path name such as /v/w,
           the path name is interpreted as /v/w/d.

      All symbolic links are interpreted in this manner, with one exception:
      when the symbolic link is the last component of a path name, it is
      passed as a parameter to one of the system calls: readlink, rename,
      symlink, unlink, chown, or lstat (see readlink(2), rename(2),
      symlink(2), unlink(2), chown(2) and lstat(2)).  With these calls, the
      symbolic link, itself, is accessed or affected.

      Unlike normal (hard) links, a symbolic link can refer to any arbitrary
      path name and can span different logical devices (volumes).

      The path name can be that of any type of file (including a directory
      or another symbolic link), and may be invalid if no such path exists
      in the system.  (It is possible to make symbolic links point to
      themselves or other symbolic links in such a way that they form a
      closed loop.  The system detects this situation by limiting the number
      of symbolic links it traverses while translating a path name.)

      The mode and ownership of a symbolic link is ignored by the system,
      which means that chmod affects the actual file, but not the file
      containing the symbolic link (see chmod(1)).

      Symbolic links can be created using ln or symlink (see ln(1) and
      symlink(2)).

 AUTHOR    [Toc]    [Back]
      symlink was developed by HP and the University of California,
      Berkeley.

 SEE ALSO    [Toc]    [Back]
      cp(1), symlink(2), readlink(2), link(2), stat(2), mknod(1M).


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
ln Tru64 Make a hard link or a symbolic link to a file
lstat HP-UX get symbolic link status
readlink Tru64 Read the value of a symbolic link
readlink FreeBSD read value of a symbolic link
symlink FreeBSD symbolic link handling
symlink OpenBSD symbolic link handling
readlink IRIX prints the value of a symbolic link
readlink OpenBSD read value of a symbolic link
readlink IRIX read the value of a symbolic link
readlink NetBSD read value of a symbolic link
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service