sudo apt-get install xclipThen
ls | xclip -selection clipboardwill copy the output of ls into the clipboard.
I use an alias in my .bashrc for it:
alias c='xclip -selection clipboard'So the command becomes:
ls | c
sudo apt-get install xclipThen
ls | xclip -selection clipboardwill copy the output of ls into the clipboard.
alias c='xclip -selection clipboard'So the command becomes:
ls | c
alias vib='vi ~/.bashrc && source ~/.bashrc'
vibwhich will edit .bashrc and will run source on it automatically when you finish editing.