How do I change a soft link in Linux?

Quang Hiếu

New member
How do I change a soft link in Linux?
Answer
Then, there are three ways to change the symlink:
  1. Use ln with -f force and even for directories -n (inode could get reused): ln -sfn /some/new/path linkname.
  2. Remove the symlink and create a new one (even for directories): rm linkname; ln -s /some/new/path linkname.
 

Tìm kiếm

Back
Top