Go Job Hunting at the LQ Job Marketplace
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-21-2007, 12:52 AM   #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, 11:18 AM   #2
Registered: Jun 2004
Posts: 60

Rep: Reputation: Disabled

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

Original Poster
Rep: Reputation: 32
Awesome, thanks
Old 02-03-2010, 07: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-04-2010, 12:26 AM   #5
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian except for netbook still on Slackware 13.37 (and I have to support Ubuntu)
Posts: 8,572
Blog Entries: 30

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
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 06:02 PM
Command to put texfile in the clipboard? enemorales Linux - Software 0 02-09-2005 04:21 AM
Command to clear RAM? flamesrock Linux - Software 9 11-22-2004 07:41 PM
Always clear last command GUIPenguin Linux - General 3 09-14-2004 05:45 PM
Command output to clipboard sami Linux - Newbie 2 02-23-2004 03:05 AM

All times are GMT -5. The time now is 06:51 AM.

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