Back to the posts

How to copy to clipboard in Linux/macOS

TL;DR

Linux

echo "hello world" | xclip -sel c

macOS

echo "hello world" | pbcopy

© 2021 Mo Kweon. All rights reserved.