Since they are "saved to clipboard", the contents must be stored somewhere.
Are they stored in a file?
Since they are "saved to clipboard", the contents must be stored somewhere.
Are they stored in a file?
There are 3 clipboards usually available to users on Linux.
These clipboards are called "Selections".
There is:
All of them are stored, by default, in memory of the controlling application (usually Xorg, but not always). And every child application has access to it.
Clipboard monitors and managers exist that can monitor the clipboards and store their contents in a file, or more commonly, let you review your clipboard history.
What clipboard? There are some apps/tools that can be used to store clipboard contents to a file on disk, but the core clipboard feature in X11 simply keeps what is in the clipboard, in memory. It is not stored in a file on disk.
On my Xubuntu system, I have Clipman installed, and I find the clipboard contents at /home/YourUsername/.cache/xfce4/clipman/textsrc
. Yes, that's a cache file, but can be saved even after rebooting my system. It's not a MEMORY
cache, which is cleared on, say, reboot.
However, if you quit Clipman and then restart, the data will be lost. So, if you want your items to be saved no matter what, you can open the file with, say, mousepad, copy the contents, create a new file named ClipboardHistory*date*.txt
in, say, your documents folder, paste into it and save before closing.
You can restore the contents by the reverse process. You can also edit the contents this way if you want (you may want to delete the clipboard entry containing all the text if it duplicates!) On other environments the idea is probably the same, the names of the programs will be different, however.