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
lrwxr-xr-x 1 itvirta staff 6 Jun 13 15:39 testlink -> foobar
). The text file seems to match a description of how Mac OS X saves symbolic links on DOS/FAT filesystems. I don't think Linux supports those on vfat filesystems, and otherwise you would have real native symlinks. (Unless some desktop environments use special text files as "links" (?)) – ilkkachu Jun 13 '16 at 12:52find -lname
andreadlink
) are not going to find it. Also, I can't tell if you need to change them to regular symlinks or edit in that format. – ilkkachu Jun 13 '16 at 12:57ln -s Math /users/masi/Mathematics
so that all path names starting with/Users/masi/Mathematics
automatically resolve by replacing that prefix with/Users/masi/Math
? – Ralph Rönnquist Jun 13 '16 at 19:13ln -s $HOME/Math/ $HOME/LOREM/Math/
i.e. to create a new symlink. Yes, that is a replacement of an old link with a new one. I have many such links etc Physics, Chemistry, ... in a similar fashion. I am thinking how I could handle it in practice. The manual replacement may be the only way to do it here. It is however not what I would like to have. I would like to have a continuous monitoring about those links, and suggestions for fixes. My systems break often, and they are big. Manual means work. – Léo Léopold Hertz 준영 Jun 13 '16 at 20:02/Users/masi
? You reference$HOME
along with absolute paths but nothing explicitly ties one to the other. 2. The file-that-should-be-a-symlink-but-isn't contains/Users/masi/Math/
. How do you determine that it should really point to/Users/masi/LOREM/Math/
? 3. What determines that a file is supposed to be replaced with a symlink? – Chris Davies Jun 13 '16 at 22:55/Users/masi
. 2. It should really point to/Users/masi/Lorem/Math
because I know my system and the correposding directory is there. 3. I do not know. Do you? – Léo Léopold Hertz 준영 Jun 14 '16 at 06:10/Users
or/home
. Have you tried them yet? – Chris Davies Jun 19 '16 at 20:20