Alias for pbcopy and pbpaste in GNU Linux

You got me, I’ve been a MacOS user for quite a while now, and I’ve grown accustomed to pbcopy and pbpaste. However, I’m still a Linux user and whenever I do a fresh GNU Linux install, I always end up googling the following aliases:

alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'

Last modified on 2022-02-13