Posted By

mprabhuram on 07/26/10


Tagged

UnixScripts


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

NARKOZ


Symbolic Link


 / Published in: Bash
 

URL: http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/

A symbolic link is a pointer to another file or directory. It can be used just like the original file or directory. A symbolic link appears in a long listing (ls -l) with a reference to the original file/directory. A symbolic link, as opposed to a hard link, is required when linking from one filesystem to another and can be used within a filesystem as well.\r\n\r\nTo create a symbolic link, the syntax of the command is similar to a copy or move command: existing file first, destination file second. For example, to link the directory /export/space/common/archive to /archive for easy access, use:

  1. ln -s /export/space/common/archive /archive

Report this snippet  

You need to login to post a comment.