Post #4179079
2026-07-28 22:31 UTC
TIL about this weird GNU cp syntax to copy a directory while renaming it without the normal "copy into target if it's a directory" behaviour https://unix.stackexchange.com/a/412262
cp -r /src/foo/. /dest/bar
Replies (1)
-
@Shrigglepuss@godforsaken.website 2026-07-28 22:36
@annika@xoxo.zone doesn't adding a trailing / to the destination also do this? I'm not at a computer to check right now though