Wednesday, 7 November 2012

Move directory to another partition with symbolic Link

move to the directory you want the symbolic link, then:

ln -s     <path-to-actual-folder >      <parent directory of the link file>

to confirm, do:

ls -ld link file
ln -s /home/log/ /var/

ls -ld /var/log
lrwxrwxrwx 1 root root 10 Sep 5 14:43 /var/log -> /home/log/

No comments:

Post a Comment