回答:
別の選択肢はxselプログラムです:
By default, this program outputs the selection without modification if both standard input and standard output are terminals (ttys). Other‐ wise, the current selection is output if standard output is not a ter‐ minal (tty), and the selection is set from standard input if standard input is not a terminal (tty). If any input or output options are given then the program behaves only in the requested mode.
したがって、何かをクリップボードにコピーして実行xselすると、ターミナルに出力されます。man xselどのクリップボードを使用するかなど、より高度なオプションを確認することができます。
alias pbcopy='xsel --clipboard --input'; alias pbpaste='xsel --clipboard --output' MacOSコマンドに一致する名前を選択しました。