Aral Balkan on Nostr: You know you can use your mouse and keyboard between different Macs using Universal ...
You know you can use your mouse and keyboard between different Macs using Universal Control and copy/paste between them (which makes it really easy when manually migrating settings, etc., between machines), but did you know you can also copy/paste whole files using Terminal:
On the first Mac:
cat my-file.txt | pbcopy
On the second Mac:
pbpaste > my-file.txt
Piping to pbcopy is something you’ll likely find useful in general.
(You can also drag/drop files to Finder.)
#macOS #tip #terminal
Published at
2024-11-21 10:32:09Event JSON
{
"id": "511ac83939b5c2dd39ad3c5e98c592f691e52c8c9714a85f77e1e6370691fb5d",
"pubkey": "9da994565b2f3100ad1714080d081a90c771b9bb1276d939795f5a9e179af829",
"created_at": 1732185129,
"kind": 1,
"tags": [
[
"t",
"macos"
],
[
"t",
"tip"
],
[
"t",
"terminal"
],
[
"proxy",
"https://mastodon.ar.al/users/aral/statuses/113520484640774212",
"activitypub"
]
],
"content": "You know you can use your mouse and keyboard between different Macs using Universal Control and copy/paste between them (which makes it really easy when manually migrating settings, etc., between machines), but did you know you can also copy/paste whole files using Terminal:\n\nOn the first Mac:\n\ncat my-file.txt | pbcopy\n\nOn the second Mac:\n\npbpaste \u003e my-file.txt\n\nPiping to pbcopy is something you’ll likely find useful in general.\n\n(You can also drag/drop files to Finder.)\n\n#macOS #tip #terminal",
"sig": "53bf61f48b782a643e00ab546862a4e70289275f7b61ef3dc09b663fba90926a901e4cbdfe98add146157c061f8c041a259b84ac8b0e94aa8c52d90a9e7ef606"
}