Is there any way to copy current command (line typed in bash prompt) in terminal to X-clipboard without involving a mouse?
Yes, first you have to install xclip.
sudo apt-get install xclip)
Then to copy previous line:
echo !! | xclip
To Paste: Middle click or
date Wed Jul 24 15:46:54 IST 2013 echo !! | xclip xclip -o date
To copy Output of any command:
<command> | xclip
However, this may fail if the command has special characters.