I'm coping file to xclip
cat file.txt | xclip
I'm pasting without problem with
xclip -o
When I want to paste it to Firefox
with Ctrl+V
it pastes old text (that shouldn't already be in the clipboard).
When I go back to terminal and run xclip -o
it pastes the correct text.
Why is there a problem with pasting to Firefox
?
-f, -filter
is a built intee
. It writes to the clipboard and to stdout at the same time. That could come in handy (for something). – Peter.O Oct 13 '11 at 07:34-t $(file -b --mime-type "$1")
– Raphael Jan 30 '19 at 08:31xclip -selection clipboard
can be shortened toxclip -se c
. – Victor Yarema Mar 28 '20 at 18:19