The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
change target of a symbolic link
Member Name
Remember Me?
Password
Forums
Search Forums
Register
Forum Rules
Man Pages
Albums
FAQ
Members
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
change target of a symbolic link
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
09-23-2008
shamrock
Registered User
Join Date: Oct 2007
Location: USA
Posts: 1,304
Thanks: 11
Thanked 99 Times in 95 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
shamrock
View Public Profile
Find all posts by shamrock
The UNIX and Linux Forums