Search This Blog

Loading...

Thursday, April 2, 2009

Create a symbolic link in UNIX

To 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:

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

To link the runtime control script /etc/init.d/httpd to /etc/rc2.d/S77httpd, use:

cd /etc/rc2.d
ln -s ../init.d/httpd S77httpd

1 comment:

JP@ unix find command said...

Nice and simple tips , you have indeed cover the topic with great details. I have also blogged my experience as 5 example of symbolic link or symlink in unix . let me know how do you find it