Install sudo apt-get install xclip -y Create Alias alias pbcopy='xclip -selection clipboard' alias pbpaste='xclip -selection clipboard -o' Try out pbcopy < /proc/cpuinfo pbpaste > tst.txt cat tst.txt