Hacker News new | ask | show | jobs
by chuckadams 482 days ago
Yes pbcopy is a mac thing. On Linux, there are of course many different commands in different environments/distros. xsel, xclip, wl-clipboard, wlclip to name a few.

On windows, powershell has Get-Clipboard and Set-Clipboard, and cmd.exe has `wsl` to fix the issue of having used cmd.exe to begin with.

2 comments

There's also clip(.exe) on every version of Windows I've bumped into recently.
On Linux I made a ~/bin/pbcopy that does the right thing because all the Linux commands are stupidly difficult to remember compared to "pbcopy".