New answers tagged symlink
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 ...
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 ...
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 /...
Top 50 recent answers are included
Related Tags
symlink × 1172linux × 144
bash × 96
files × 84
filesystems × 82
ln × 76
directory × 74
shell × 71
hard-link × 68
permissions × 63
find × 53
rsync × 47
shell-script × 44
ls × 37
mount × 36
cd-command × 34
command-line × 30
cp × 30
debian × 28
ubuntu × 28
filenames × 26
path × 23
zsh × 22
macos × 22
rm × 21