You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ touch a
$ ln -s a symlink
$ cargo run cp --remove-destination a symlink
cp: 'a' and 'symlink' are the same file
GNU cp, on the other hand, creates a copy of a named symlink:
$ touch a
$ ln -s a symlink
$ ls -l
total 0
-rw-r--r-- 1 dho dho 0 Oct 18 15:16 a
lrwxrwxrwx 1 dho dho 1 Oct 18 15:16 symlink -> a
$ cp --remove-destination a symlink
$ ls -l
total 0
-rw-r--r-- 1 dho dho 0 Oct 18 15:16 a
-rw-r--r-- 1 dho dho 0 Oct 18 15:16 symlink
The text was updated successfully, but these errors were encountered:
uutils
cp
:GNU
cp
, on the other hand, creates a copy ofa
namedsymlink
:The text was updated successfully, but these errors were encountered: