Unix/Linux Go Back    



change target of a symbolic link

UNIX for Dummies Questions & Answers




Kindly Note - This is a Single User Post by Forum Member shamrock Regarding:
change target of a symbolic link.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 09-23-2008
shamrock shamrock is offline Forum Advisor  
Registered User
 
Join Date: Oct 2007
Last Activity: 15 April 2015, 10:26 AM EDT
Location: USA
Posts: 1,556
Thanks: 25
Thanked 150 Times in 142 Posts
fpmurphy is absolutely correct...yes you can change the target of a soft link without deleting the old one by forcing ln to do so.

Code:
ln -s /home/Data1 /home/Stores/abc
ln -f -s /home/Data2 /home/Stores/abc