Skip to main content

New answers tagged

0 votes

How to Stop Script from Overwriting Symlink to a File

It turns out that the culprit was Socat - apparently it didn't like having to use the symlink and instead would pass the information into the symlink and breaking it. The work around I ended up using ...
Oliver Munro's user avatar
2 votes

Fix symbolic links in mass across filesystems. Absolute links pointing to original source, not new equivalent location

I would like to thank @larsks for his contribution. Unfortunately, I will not be able to test it as I already processed the links thanks to this article. I will present the solution I found as well ...
Ad-Man-Gamer's user avatar
0 votes

Fix symbolic links in mass across filesystems. Absolute links pointing to original source, not new equivalent location

It looks like your goal is to replace /mnt/fs1 with /mnt/fs2 in all symlinks found under /mnt/fs2. You could do something like this: find /mnt/fs2 -type l -execdir \ sh -c 'readlink $1 | grep -q /...
larsks's user avatar
  • 36.4k

Top 50 recent answers are included