symlink
Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 07 March 2010
Index
Return to Main Contents
NAME
symlink - create symlink link -> original
SYNOPSIS
edrc/bin/symlink
[
-h
]
symlink
[
-l
]
original
link
AVAILABILITY
WA2L/edrc
DESCRIPTION
the
symlink
command is used to create a symbolic link to an original destination, basically
as the '
ln -s
original
link
' command does.
If the
link
item already exists, it is removed prior to the symbolic link creation. To
avoid data deletion, the
-l
switch can be used to ensure, that the
link
already exists and is also a symbolic link.
The main purpose of
symlink
is to toggle a symbolic link from one to the other
original.
If an existing symbolic link is replaced, the replacement is created
with the identical owner and group, as the existing link was.
If a new symbolic link is created, the owner and group of the
new symbolic link is set as the item it is pointing to.
A new standalone symbolic link, or if the user using the
symlink
command is not allowed to set the user and group memberships, the
new symbolic link is created with the owner-ships of the creating user.
OPTIONS
- -h
-
usage message.
- -l
-
link
must be an existing symbolic link. If it isn't an existing
symbolic link, it will not be removed.
- original
-
original file.
- link
-
symbolic link.
ENVIRONMENT
-
EXIT STATUS
- 0
-
no error.
- 1
-
cannot remove existing symlink.
- 2
-
link
does not exist or is not a symlink.
- 3
-
cannot create symlink.
- 4
-
usage printed.
FILES
-
EXAMPLES
-
SEE ALSO
edrcintro(1),
ln(1)
NOTES
-
BUGS
-
AUTHOR
symlink was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2014
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:54:34 GMT, August 28, 2024