Skip to content

Instantly share code, notes, and snippets.

@shaneholloman
Forked from diegopacheco/pbpaste-pbcopy-ubuntu.md
Last active October 1, 2024 04:09
Show Gist options
  • Save shaneholloman/b5a677e29a4b747b3ced9f7622a76fbb to your computer and use it in GitHub Desktop.
Save shaneholloman/b5a677e29a4b747b3ced9f7622a76fbb to your computer and use it in GitHub Desktop.
pbpaste && pbcopy for Ubuntu Linux 20.04

Install

sudo apt-get install xclip -y

Create Alias

alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'

Try out

pbcopy < /proc/cpuinfo
pbpaste > tst.txt
cat tst.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment