Pipe output to clipboard on Ubuntu
11 March 2022 (Updated 11 March 2022)
pwd | xclip -sel clip
This will pipe the output of pwd
to the clipboard.
Bonus: use alias
alias clipboard="xclip -sel clip"
Now, you can do:
pwd | clipboard
Tagged:
Ubuntu
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment