Pages

Friday, May 27, 2011

Create a soft link in unix

Creating a soft link in unix


Let say:  abc/123 is the directory which contains actual data.(Deletion of this directory will lose data and link will be useless).


xyz/123 is routed to abc/123 (Deletion of xyz/123 directory, will lose link but not data).


# ln -s /abc/123 /xyz/123
# cd /xyz
# ls -ltr
lrwxrwxrwx   1 root     root           9 Dec  1 13:48 123-> /abc/123


Suggestions are always welcome...! Without signing also you can send your comments. 

1 comment:

unix grep examples said...

symlink is very important while working in unix. you can also update symblink in one step check this update soft link in unix in one step