I’m attempting to copy a symlink of a file in one directory to another directory.
I need the copy to be a symlink, not a hard link or a broken symlink.
cp -A
and cp -P
generated broken (flashing) symlinks as indicated by file -b
.
cp
and cp -R
create hard links.
How would I create a copy of the symlink without resorting to ln -s
and creating a new symlink from the original file (therefore requiring knowledge of its inode)?
Thanks for your help.
Asked by TheorVHP
(1 rep)
Apr 5, 2024, 11:33 AM