Copy command output to clipboard using pipealias copy='xclip -sel clip' sudo apt-get install xclip echo "alias copy='xclip -sel clip'" >> ~/.bashrc