mort on Nostr: rsync is cool and stuff but I soooo frequently want to just copy a directory into a ...
rsync is cool and stuff but I soooo frequently want to just copy a directory into a place but I absentmindedly leave in the trailing '/' from the tab complete so rsync copies over the *contents* of the directory instead of the directory itself
I have filled up home directories with garbage so many times
#linux #rsync #shell
Published at
2024-10-19 14:36:28 UTCEvent JSON
{
"id": "3524bdbe2fa5356d339ad23d372540efb53d1f7575120ec26f80c642e5f50ec6",
"pubkey": "d161863854e69153d6d31c76d38cb74a373cff754e7413e8f381f2fa5356e683",
"created_at": 1729348588,
"kind": 1,
"tags": [
[
"t",
"shell"
],
[
"t",
"linux"
],
[
"proxy",
"https://fosstodon.org/@mort/113334589094441438",
"web"
],
[
"t",
"rsync"
],
[
"proxy",
"https://fosstodon.org/users/mort/statuses/113334589094441438",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/mort/statuses/113334589094441438",
"pink.momostr"
],
[
"-"
]
],
"content": "rsync is cool and stuff but I soooo frequently want to just copy a directory into a place but I absentmindedly leave in the trailing '/' from the tab complete so rsync copies over the *contents* of the directory instead of the directory itself\n\nI have filled up home directories with garbage so many times\n\n#linux #rsync #shell",
"sig": "59bdc8576d7c759bd92785779fc1d52de003a16c43b2f1ccac380eabe74fdc15a64113b8f3c3446cd36efc6e1b9e5b53eceb6b95dd180eb3c5de298538c93e58"
}