IT Notes

Copying Remote Command Output to Your macOS Clipboard (opens in new tab)

Covered by Bboysoul's BlogDiscussed on Hacker News

I use Apple devices very often. Overall, I like macOS. Certainly more than Windows. One of the things I find extremely useful is a command I discovered not too long ago: pbcopy. pbcopy can be used to copy to the clipboard whatever it receives from standard input. For example, when I am in a shell, I often use a command like this: cat filename.md | pbcopy At that point I know that the content of the file is in the clipboard, and I can paste it wherever I need, calmly and without any additional...

Read the original article
Sign in to keep reading the full article.

Covered in 2 articles

Bboysoul's Blog·
Feeds

In other languages

Bboysoul's Blog·
Feeds

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help