View on GitHub

Devendra's Log

Send output to X clipboard from the command line

On Ubuntu, install the xclip package.

Pipe output to xclip -selection clipboard

ls | xclip -selection clipboard