Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-20-2007, 11:52 PM   #1
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Clear clipboard via command line?

Is there a command I can use that will clear the X clipboard contents?
Old 01-21-2007, 10:18 AM   #2
Registered: Jun 2004
Posts: 60

Rep: Reputation: Disabled

uclip -z (i suppose)
Old 01-21-2007, 06:41 PM   #3
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Awesome, thanks
Old 02-03-2010, 06:31 PM   #4
LQ Newbie
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
$ touch blank
$ xclip -selection clipboard blank

seemed to work for me.
Old 02-03-2010, 11:26 PM   #5
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Originally Posted by Wynd View Post
Awesome, thanks
If it has solved the problem please mark the thread SOLVED. This can be done via the "Thread Tools" menu.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i replace the clear "clear screen" with the cls command thefedexguy SUSE / openSUSE 2 12-02-2005 05:02 PM
Command to put texfile in the clipboard? enemorales Linux - Software 0 02-09-2005 03:21 AM
Command to clear RAM? flamesrock Linux - Software 9 11-22-2004 06:41 PM
Always clear last command GUIPenguin Linux - General 3 09-14-2004 04:45 PM
Command output to clipboard sami Linux - Newbie 2 02-23-2004 02:05 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration