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: 10 October 2016, 3:03 PM EDT
Location: USA
Posts: 1,595
Thanks: 34
Thanked 156 Times in 147 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.

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