Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

symlink

Creates a symbolic (soft) link.

Creates a symbolic link LINKNAME that points to TARGET. Unlike hard links, symbolic links can span filesystems and can point to directories. Uses std::os::unix::fs::symlink. Returns 1 on success, 0 on failure (and sets $!).

Synopsis

symlink $target, $linkname or die "Cannot symlink: $!";
symlink '/usr/bin/perl', '/usr/local/bin/perl';

See Also

link, readlink, unlink