Monday, January 7, 2013

How to make a Softlink in BasicUNIX/RHEL/HP UX

Hi All,

The command to make softlink in Unix is with a very small command :-

ln ;-- link command

ln -s "source file" "destination file"

explaination

#ln -s "name of the directory or file which needs to be made a soft link" "name of the file"

example

# cd  /
#
#ln -s /var/oracle /tmp/oracle

this will create a softlink in /tmp directory named as oracle of the directory /var/oracle.

will represent as below in tmp

#pwd
/tmp
#
#lrwrwxrwx owner owner oracle --> /var/oracle/

where this soft link can be accessed to access the content of /var/oracle

---------------------------

please correct me if i am wrong , thanks for the visit. please visit again.


Regards
Amit Chopra


 

No comments: