For example, to copy the current directory :
pwd | xclip -i -sel "clip"
There are of course more useful things that can be piped to it. To try it out create a file, add some text and :
cat newfile | xclip -i -sel "clip"
Its available through yum :
sudo yum install xclip
1 comment:
pwd | tr -d "\n" | xclip -i -sel "clip" will trim the line that comes at the end of the command.
Post a Comment