I moved my filesystem and symlinks from Ubuntu 14.04 to 16.04 by using FAT32 memory card, which apparently broke those links; stopped using BitTorrentSync. Differential condition is that those links are remnants of my OSX installation because of XSym. I do ls -la $HOME | grep Math for a symlink
-rw-r--r-- 1 masi masi 1067 May 17 21:28 Math
which contents in the text-editor
XSym
0078
48055bd2d9c13568c969e1eb8d6a22ac
/Users/masi/Math/
It should point to /Users/masi/LOREM/Math/ instead.
Just correcting manually the PATH does not work, since the link stays death.
Gilles' command can be applicable here too:
find /Users/masi/Math/ /
-lname '/Users/masi/LOREM/Math/*' \
-exec sh -c 'ln -snf "/mnt$(readlink "$0")" "$0"' {} \;
where I am not sure if I got the source and destination in the correct order.
Systems: Ubuntu 14.04, Ubuntu 16.04