Clipboard (computing)
The clipboard is a buffer that some operating systems provide for short-term storage and transfer across applications. The clipboard provides an application programming interface by which programs can specify cut, copy and paste operations. It is left to the program to define methods for the user to command these operations, which may include keybindings and menu selections. When an element is copied or cut, the clipboard must store enough information to enable a sensible result no matter where the element is pasted. Application programs may extend the clipboard functions that the operating system provides. A clipboard manager may give the user additional control over the clipboard. Specific clipboard semantics vary among operating systems, can also vary between versions of the same system, and can sometimes be changed by programs and by user preferences. Windows and macOS support a single clipboard transaction; however, Linux desktops generally provide a full history of clipboard...
The clipboard is a buffer that some operating systems provide for short-term storage and transfer across applications. The clipboard provides an application programming interface by which programs can specify cut, copy and paste operations. It is left to the program to define methods for the user to command these operations, which may include keybindings and menu selections. When an element is copied or cut, the clipboard must store enough information to enable a sensible result no matter where the element is pasted. Application programs may extend the clipboard functions that the operating system provides. A clipboard manager may give the user additional control over the clipboard. Specific clipboard semantics vary among operating systems, can also vary between versions of the same system, and can sometimes be changed by programs and by user preferences. Windows and macOS support a single clipboard transaction; however, Linux desktops generally provide a full history of clipboard transactions (sometimes called a kill ring) to the user, allowing them to store several pieces of information at once before retrieving them on demand. ==Computer security== Clipboard hijacking or clipboard injection is an exploit in which a person's clipboard's content is replaced by malicious data, such as a link to a malicious web site. For example, if a user copies a cryptocurrency receiving address into the clipboard, a hijacking program can overwrite it with an address controlled by the hijacker, so that when the user pastes the address their cryptocurrency is transmitted to the hijacker instead of the intended recipient. While some security-holes were patched, JavaScript can still be used to modify clipboard content via an attack dubbed 'pastejacking'. Dylan Ayrey who developed the attack set up a website that demonstrates how this exploit can be used to trick a user into running commands they didn't want to run. There have been exploits where web pages grab clipboard data. In early 2013 researchers exposed risks stemming from Android-based password managers and documented how passwords in 21 of the most popular of these apps could be accessed by any other app on an Android device including those with extremely low-level privileges. Joe Siegrist notes that this is an "OS-level issue that impacts everything running on Android". ==Clipboard management and extensions== , an example of a clipboard management program]] Clipboard manager extensions add functionality to the integrated clipboard functions of an operating system. They are applications that enable the user to manipulate the clipboard. On platforms such as Linux that use multiple incompatible GUI toolkits, clipboard managers are often used to transfer data between applications using different such frameworks. When a clipboard manager provides multiple cut and paste transactions, the clipboard is treated as a stack or scrap book, with new cuts and copies being placed on a list of recent transactions. The standard paste operation copies the most recent transaction, while specialized pastes provide access to the other stored transactions. These managers generally also provide a window that displays the transaction history and allows the user to select earlier copies, edit them, change their format and even search amongst them. Since most operating systems (e.g. Windows, macOS, Linux, X11, Android, iOS) do not save the clipboard contents to any persistent storage – when a user logs out or reboots the system the clipboard contents are deleted – an added functionality is to save the clipboard persistently. Another example is making the local clipboard work with online applications by saving the clipboard data to the online location upon a copy or cut event, making this data available to online applications for pasting. Clipboard managers can also serve as tools to overcome the limitation of software not supporting copying and pasting (for example, while logging into remote Windows server, one cannot copy and paste their user name and password). $ # to copy data into the clipboard: $ echo 'hello world' | pbcopy $ # to paste from the clipboard: $ pbpaste hello world $ # to paste the content of a folder to the clipboard: $ dir | clip The clipboard can also be accessed via PowerShell: to paste the content of a directory to the clipboard Set-Clipboard -Path "C:\directory\" to get the content of the clipboard Get-Clipboard Windows 10 and Windows 11 include the Clipboard application, allowing for the storage of multiple text-based clipboard items. It can be accessed by pressing Windows+V. $ # to paste standard output to the clipboard using xclip $ echo text | xclip -in -selection clipboard $ # to paste standard output to the clipboard using xsel $ echo text | xsel --clipboard The main difference to OS X and Windows is that no data is actually stored in the CLIPBOARD-clipboard but only the reference to the copied or cut data. The application claims the ownership of the CLIPBOARD selection and communicates its ownership to the X Server. When pasting this data, the data and its available formats are requested from the application that owns the CLIPBOARD selection. Windows Dev Center: Transferring Shell Objects with Drag-and-Drop and the Clipboard Microsoft Developer Network: How the Clipboard Works, Part 1 Microsoft Developer Network: How the Clipboard Works, Part 2 Microsoft Developer Network: Delayed Rendering of Clipboard Data
References
- ^ "Adopting Uniform Type Identifiers" . developer.apple.com . Archived from the original on 2018-07-21 . Retrieved 9 December 2018 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "What is clipboard hijack attack? - Definition from WhatIs.com" . WhatIs.com . Archived from the original on 2017-01-05 . Retrieved 4 January 2017 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "Clipboard injector distributed under the guise of Tor Browser" . securelist.com . 2023-03-28 . Retrieved 2024-05-15 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1715727600.0
- ^ Chirgwin, Richard. "Pastejack attack turns your clipboard into a threat" . The Register. Archived from the original on 2017-01-04 . Retrieved 4 January 2017 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "Researcher warns of 'pastejacking' hack attacks targeting users' clipboards" . Graham Cluley. 26 May 2016. Archived from the original on 2017-01-05 . Retrieved 4 January 2017 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "dxa4481/Pastejacking" . GitHub . Archived from the original on 2017-01-04 . Retrieved 4 January 2017 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ Fahl, Sascha; Harbach, Marian; Oltrogge, Marten; Muders, Thomas; Smith, Matthew (2013). "Hey, You, Get Off of My Clipboard" (PDF) . Financial Cryptography and Data Security . Lecture Notes in Computer Science. Vol. 7859. pp. 144– 161. doi : 10.1007/978-3-642-39884-1_12 . ISBN 978-3-642-39883-4 . Archived (PDF) from the original on 2017-09-19 . Retrieved 4 January 2017 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "Using a password manager on Android? It may be wide open to sniffing attacks" . Ars Technica. 21 November 2014. Archived from the original on 2017-01-04 . Retrieved 4 January 2017 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "Clipboard Device – AmigaOS Documentation Wiki" . wiki.amigaos.net . Archived from the original on 2018-02-05 . Retrieved 2018-02-03 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517612400.0
- ^ "Copy and Paste | Android Developers" . developer.android.com . Archived from the original on 2018-02-07 . Retrieved 2018-02-06 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517871600.0
- ^ Kimmatkar, Sarang B. (2014). "Extending functionalities of default clipboard". (IJCSIT) International Journal of Computer Science and Information Technologies 5 . 6 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "ClipboardManager | Android Developers" . developer.android.com . Archived from the original on 2018-02-07 . Retrieved 2018-02-02 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517526000.0
- ^ "Pasteboard" . developer.apple.com . Archived from the original on 2018-02-07 . Retrieved 2018-02-01 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517439600.0
- ^ "Uniform Type Identifier" . developer.apple.com . Archived from the original on 2018-02-07 . Retrieved 2018-02-06 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517871600.0
- ^ "ClipboardViewer" . developer.apple.com . Archived from the original on 2018-02-07 . Retrieved 2018-02-06 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517871600.0
- ^ "Copy to clipboard from terminal in OS X" . rogeriopvl.com . Archived from the original on 2013-08-15 . Retrieved 2013-07-02 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1372719600.0
- ^ "pbcopy(1) Mac OS X Manual Page" . apple.com . Archived from the original on 2014-03-28 . Retrieved 2013-07-02 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1372719600.0
- ^ "Clipboard Formats (Windows)" . msdn.microsoft.com . Archived from the original on 2018-02-07 . Retrieved 2018-02-03 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517612400.0
- ^ "Standard Clipboard Formats (Windows)" . msdn.microsoft.com . Archived from the original on 2018-02-07 . Retrieved 2018-02-03 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517612400.0
- ^ "HTML Clipboard Format (Internet Explorer)" . msdn.microsoft.com . 15 August 2017. Archived from the original on 2018-02-07 . Retrieved 2018-02-03 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517612400.0
- ^ "View & Manage Clipboard In Windows 10/8/7" . The Windows Club . 2013-04-12. Archived from the original on 2018-02-12 . Retrieved 2018-02-06 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517871600.0
- ^ Stephens, Rod (2010). Visual Basic 2010 : programmer's reference . Library Genesis. Indianapolis, IN : Wiley Pub., Inc. ISBN 978-0-470-49983-2 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "clip | Microsoft Docs" . Docs.microsoft.com. 2017-10-16 . Retrieved 2019-09-26 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1569452400.0
- ^ "reactos/base/applications/cmdutils/clip at master · reactos/reactos · GitHub" . Github.com . Retrieved 2019-09-26 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1569452400.0
- ^ "How to Copy Command Line Output to the Windows Clipboard" . www.labnol.org . 8 August 2013. Archived from the original on 2018-02-07 . Retrieved 2018-02-06 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517871600.0
- ^ sdwheeler. "Get-Clipboard (Microsoft.PowerShell.Management)" . docs.microsoft.com . Archived from the original on 2018-01-26 . Retrieved 2018-02-06 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517871600.0
- ^ sdwheeler. "Set-Clipboard (Microsoft.PowerShell.Management)" . docs.microsoft.com . Archived from the original on 2018-02-07 . Retrieved 2018-02-06 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517871600.0
- ^ "Files and clipboard in Text content" . docs.huihoo.com . Retrieved 2024-10-23 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1729638000.0
- ^ Schkatula, Yury (2010-03-28). "Symbianic life: Integrate with Symbian clipboard" . Symbianic life . Retrieved 2024-10-23 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1729638000.0
- ^ Fiodar (2019-03-06), fedor4ever/symbianClipboard , retrieved 2024-10-23 Wikipedia revision 1376388187, retrieved 2026-11-19 · 1729638000.0
- ^ "Basic Application Framework Library" . devlib.symbian.slions.net . Retrieved 2024-10-23 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1729638000.0
- ^ "Basics: Store and Restore Object using Clipboard" . devlib.symbian.slions.net . Retrieved 2024-10-23 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1729638000.0
- ^ Moggridge, Bill (2007). Designing interactions . Cambridge, Massachusetts: MIT Press. p. 65ff . ISBN 9780262134743 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "ClipBook, the multi-item Symbian clipboard manager" . All About Symbian . 2014-04-08 . Retrieved 2024-10-23 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1729638000.0
- ^ Litchfield, Steve. "Curated Symbian application store" . stevelitchfield.com . ClipBook: ClipBoard Manager (free) Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "Mclip V1.4 Symbian App – Download for free on PHONEKY" . phoneky.com . Retrieved 2024-10-23 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1729638000.0
- ^ "Download MagicKeys 2.12 for Symbian" . magickeys.soft32.com . Retrieved 2024-10-23 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1729638000.0
- ^ "clipboards-spec" . freedesktop.org. Archived from the original on 2014-12-24 . Retrieved 2014-08-16 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1408143600.0
- ^ "gnu.org" . www.gnu.org . Archived from the original on 2017-12-24 . Retrieved 2018-02-16 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1518735600.0
- ^ "Copying and Pasting To and From the System Clipboard On The Command Line — Fernando Basso" . fernandobasso.github.io . Archived from the original on 2018-02-07 . Retrieved 2018-02-06 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517871600.0
- ^ "X Selections, X Cut Buffers, and Emacs Kill Rings" . www.jwz.org . Archived from the original on 2018-03-04 . Retrieved 2018-02-02 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517526000.0
- ^ Tesler, Larry. "A Personal History of Modeless Text Editing and Cut/Copy-Paste" . acm.org . Retrieved September 23, 2026 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "Clipboard API and events – ClipboardEvent" . www.w3.org . Archived from the original on 2018-01-28 . Retrieved 2018-02-08 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1518044400.0
- ^ "Clipboard API and events – Synchronous Clipboard API" . www.w3.org . Archived from the original on 2018-01-28 . Retrieved 2018-02-08 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1518044400.0
- ^ "platforms\plugins\src – qt/qtbase.git – Qt Base (Core, Gui, Widgets, Network, ...)" . code.qt.io . Archived from the original on 2018-02-09 . Retrieved 2018-02-02 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517526000.0
- ^ "QClipboard Class | Qt GUI 5.10" . doc.qt.io . Archived from the original on 2018-02-02 . Retrieved 2018-02-02 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517526000.0
- ^ Tolliver, Brian. "TVEDIT" (PDF) . stanford.edu . Retrieved September 23, 2026 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ Tesler, Larry. "A User Experience Retrospective" . Archived from the original on 2018-02-02 . Retrieved 23 January 2018 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "Dragging Files" . developer.apple.com . Retrieved 9 December 2018 . "In some cases, you may want to drag a file before it actually exists within the file system. You may have a new document that hasn’t been saved, yet, or perhaps the file exists on a remote system, such as a web server, to which the dragging destination may not have access." Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ "NSPasteboard – AppKit | Apple Developer Documentation" . developer.apple.com . Archived from the original on 2018-05-26 . Retrieved 9 December 2018 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1795042800.0
- ^ a b "What is a Clipboard in Computing? – Definition from Techopedia" . Techopedia.com . Archived from the original on 2018-02-02 . Retrieved 2018-02-01 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1517439600.0
- ^ a b "Clipboard – ArchWiki" . wiki.archlinux.org . Archived from the original on 2018-02-17 . Retrieved 2018-02-16 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1518735600.0
- ^ a b "Copy & Paste, Drag & Drop [MI Wiki]" . wiki.mi.ur.de (in German). Archived from the original on 2018-02-16 . Retrieved 2018-02-16 . Wikipedia revision 1376388187, retrieved 2026-11-19 · 1518735600.0
Cite this
"Clipboard (computing)". 1790193773. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1376388187 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy