renzume on Nostr: An exploration of how 'cp -R src/. dest' command works to copy directory contents, ...
An exploration of how 'cp -R src/. dest' command works to copy directory contents, including hidden files, into a destination folder. The analysis delves into POSIX algorithm details, explaining why using src/. leads to copying contents rather than the directory itself.
https://bhoot.dev/2025/cp-dot-copies-everything/#unixcommands #fileoperations #posix #directorymanagement #systemadministration
Published at
2025-02-27 20:00:54Event JSON
{
"id": "24c25fabea5f2bcfc0e3b9a1153e0eb497b01bf38e903bf9e71f34094e4fc20f",
"pubkey": "d3972a5c762e9cab61c5404c2f673480022b90860ead779d3f5eef5cbe7a7640",
"created_at": 1740686454,
"kind": 1,
"tags": [],
"content": "An exploration of how 'cp -R src/. dest' command works to copy directory contents, including hidden files, into a destination folder. The analysis delves into POSIX algorithm details, explaining why using src/. leads to copying contents rather than the directory itself.\nhttps://bhoot.dev/2025/cp-dot-copies-everything/\n#unixcommands #fileoperations #posix #directorymanagement #systemadministration",
"sig": "d8c48080e67e9bf125242683723733c9781417aab37b37ba364b3fbfa0c52ba975c26e7e1430a376737e4628cd70cb81d0b485801370c24748f2efe2f830dba7"
}