Where are the contents of the clipboard stored?











up vote
6
down vote

favorite
2












Since they are "saved to clipboard", the contents must be stored somewhere.



Are they stored in a file?










share|improve this question






















  • As far as i know, there isn't a file per se. X server stores contents internally. There's some apps that can copy stdin of terminal into clipboard ( its actually called selection in X server). I'm gonna download the sorce code, I'll let you know what i can find
    – Sergiy Kolodyazhnyy
    Feb 3 '16 at 22:02






  • 1




    See standards.freedesktop.org/clipboards-spec/clipboards-latest.txt and wiki.archlinux.org/index.php/clipboard
    – Panther
    Feb 3 '16 at 22:24















up vote
6
down vote

favorite
2












Since they are "saved to clipboard", the contents must be stored somewhere.



Are they stored in a file?










share|improve this question






















  • As far as i know, there isn't a file per se. X server stores contents internally. There's some apps that can copy stdin of terminal into clipboard ( its actually called selection in X server). I'm gonna download the sorce code, I'll let you know what i can find
    – Sergiy Kolodyazhnyy
    Feb 3 '16 at 22:02






  • 1




    See standards.freedesktop.org/clipboards-spec/clipboards-latest.txt and wiki.archlinux.org/index.php/clipboard
    – Panther
    Feb 3 '16 at 22:24













up vote
6
down vote

favorite
2









up vote
6
down vote

favorite
2






2





Since they are "saved to clipboard", the contents must be stored somewhere.



Are they stored in a file?










share|improve this question













Since they are "saved to clipboard", the contents must be stored somewhere.



Are they stored in a file?







clipboard






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 3 '16 at 21:30









TellMeWhy

7,7311765114




7,7311765114












  • As far as i know, there isn't a file per se. X server stores contents internally. There's some apps that can copy stdin of terminal into clipboard ( its actually called selection in X server). I'm gonna download the sorce code, I'll let you know what i can find
    – Sergiy Kolodyazhnyy
    Feb 3 '16 at 22:02






  • 1




    See standards.freedesktop.org/clipboards-spec/clipboards-latest.txt and wiki.archlinux.org/index.php/clipboard
    – Panther
    Feb 3 '16 at 22:24


















  • As far as i know, there isn't a file per se. X server stores contents internally. There's some apps that can copy stdin of terminal into clipboard ( its actually called selection in X server). I'm gonna download the sorce code, I'll let you know what i can find
    – Sergiy Kolodyazhnyy
    Feb 3 '16 at 22:02






  • 1




    See standards.freedesktop.org/clipboards-spec/clipboards-latest.txt and wiki.archlinux.org/index.php/clipboard
    – Panther
    Feb 3 '16 at 22:24
















As far as i know, there isn't a file per se. X server stores contents internally. There's some apps that can copy stdin of terminal into clipboard ( its actually called selection in X server). I'm gonna download the sorce code, I'll let you know what i can find
– Sergiy Kolodyazhnyy
Feb 3 '16 at 22:02




As far as i know, there isn't a file per se. X server stores contents internally. There's some apps that can copy stdin of terminal into clipboard ( its actually called selection in X server). I'm gonna download the sorce code, I'll let you know what i can find
– Sergiy Kolodyazhnyy
Feb 3 '16 at 22:02




1




1




See standards.freedesktop.org/clipboards-spec/clipboards-latest.txt and wiki.archlinux.org/index.php/clipboard
– Panther
Feb 3 '16 at 22:24




See standards.freedesktop.org/clipboards-spec/clipboards-latest.txt and wiki.archlinux.org/index.php/clipboard
– Panther
Feb 3 '16 at 22:24










2 Answers
2






active

oldest

votes

















up vote
8
down vote



accepted










You seem to be lacking an understanding of clipboards in Linux. There are 3 usually available to users.



These clipboards are called "Selections"



There is:




  • PRIMARY - This is normally used for middle mouse button = copy/paste

  • SECONDARY - Normally not used by much, but it exists. Usually as an in app specific copy and paste.

  • CLIPBOARD - Usually Ctrl+c and Ctrl+v style copy and paste.


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.






share|improve this answer






























    up vote
    4
    down vote













    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.






    share|improve this answer





















    • Any idea what the address is?
      – TellMeWhy
      Feb 3 '16 at 21:55










    • Not sure it is so "simple' ;)
      – Panther
      Feb 3 '16 at 22:24










    • @bodhi.zazen Yes, it is that simple. :)
      – dobey
      Feb 4 '16 at 1:19










    • @DevRobot what will you do with the address?
      – muru
      Feb 4 '16 at 1:19






    • 1




      You can't access that address and it always changes. Accessing the clipboard by memory address isn't going to work. Not legitimately anyway. See github.com/ThomasHabets/clipsniff
      – coteyr
      Feb 4 '16 at 15:07













    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f729360%2fwhere-are-the-contents-of-the-clipboard-stored%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    8
    down vote



    accepted










    You seem to be lacking an understanding of clipboards in Linux. There are 3 usually available to users.



    These clipboards are called "Selections"



    There is:




    • PRIMARY - This is normally used for middle mouse button = copy/paste

    • SECONDARY - Normally not used by much, but it exists. Usually as an in app specific copy and paste.

    • CLIPBOARD - Usually Ctrl+c and Ctrl+v style copy and paste.


    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.






    share|improve this answer



























      up vote
      8
      down vote



      accepted










      You seem to be lacking an understanding of clipboards in Linux. There are 3 usually available to users.



      These clipboards are called "Selections"



      There is:




      • PRIMARY - This is normally used for middle mouse button = copy/paste

      • SECONDARY - Normally not used by much, but it exists. Usually as an in app specific copy and paste.

      • CLIPBOARD - Usually Ctrl+c and Ctrl+v style copy and paste.


      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.






      share|improve this answer

























        up vote
        8
        down vote



        accepted







        up vote
        8
        down vote



        accepted






        You seem to be lacking an understanding of clipboards in Linux. There are 3 usually available to users.



        These clipboards are called "Selections"



        There is:




        • PRIMARY - This is normally used for middle mouse button = copy/paste

        • SECONDARY - Normally not used by much, but it exists. Usually as an in app specific copy and paste.

        • CLIPBOARD - Usually Ctrl+c and Ctrl+v style copy and paste.


        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.






        share|improve this answer














        You seem to be lacking an understanding of clipboards in Linux. There are 3 usually available to users.



        These clipboards are called "Selections"



        There is:




        • PRIMARY - This is normally used for middle mouse button = copy/paste

        • SECONDARY - Normally not used by much, but it exists. Usually as an in app specific copy and paste.

        • CLIPBOARD - Usually Ctrl+c and Ctrl+v style copy and paste.


        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.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 4 at 1:32









        Kevin Bowen

        14.2k145969




        14.2k145969










        answered Feb 3 '16 at 22:22









        coteyr

        12.1k52449




        12.1k52449
























            up vote
            4
            down vote













            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.






            share|improve this answer





















            • Any idea what the address is?
              – TellMeWhy
              Feb 3 '16 at 21:55










            • Not sure it is so "simple' ;)
              – Panther
              Feb 3 '16 at 22:24










            • @bodhi.zazen Yes, it is that simple. :)
              – dobey
              Feb 4 '16 at 1:19










            • @DevRobot what will you do with the address?
              – muru
              Feb 4 '16 at 1:19






            • 1




              You can't access that address and it always changes. Accessing the clipboard by memory address isn't going to work. Not legitimately anyway. See github.com/ThomasHabets/clipsniff
              – coteyr
              Feb 4 '16 at 15:07

















            up vote
            4
            down vote













            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.






            share|improve this answer





















            • Any idea what the address is?
              – TellMeWhy
              Feb 3 '16 at 21:55










            • Not sure it is so "simple' ;)
              – Panther
              Feb 3 '16 at 22:24










            • @bodhi.zazen Yes, it is that simple. :)
              – dobey
              Feb 4 '16 at 1:19










            • @DevRobot what will you do with the address?
              – muru
              Feb 4 '16 at 1:19






            • 1




              You can't access that address and it always changes. Accessing the clipboard by memory address isn't going to work. Not legitimately anyway. See github.com/ThomasHabets/clipsniff
              – coteyr
              Feb 4 '16 at 15:07















            up vote
            4
            down vote










            up vote
            4
            down vote









            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.






            share|improve this answer












            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 3 '16 at 21:51









            dobey

            32.4k33585




            32.4k33585












            • Any idea what the address is?
              – TellMeWhy
              Feb 3 '16 at 21:55










            • Not sure it is so "simple' ;)
              – Panther
              Feb 3 '16 at 22:24










            • @bodhi.zazen Yes, it is that simple. :)
              – dobey
              Feb 4 '16 at 1:19










            • @DevRobot what will you do with the address?
              – muru
              Feb 4 '16 at 1:19






            • 1




              You can't access that address and it always changes. Accessing the clipboard by memory address isn't going to work. Not legitimately anyway. See github.com/ThomasHabets/clipsniff
              – coteyr
              Feb 4 '16 at 15:07




















            • Any idea what the address is?
              – TellMeWhy
              Feb 3 '16 at 21:55










            • Not sure it is so "simple' ;)
              – Panther
              Feb 3 '16 at 22:24










            • @bodhi.zazen Yes, it is that simple. :)
              – dobey
              Feb 4 '16 at 1:19










            • @DevRobot what will you do with the address?
              – muru
              Feb 4 '16 at 1:19






            • 1




              You can't access that address and it always changes. Accessing the clipboard by memory address isn't going to work. Not legitimately anyway. See github.com/ThomasHabets/clipsniff
              – coteyr
              Feb 4 '16 at 15:07


















            Any idea what the address is?
            – TellMeWhy
            Feb 3 '16 at 21:55




            Any idea what the address is?
            – TellMeWhy
            Feb 3 '16 at 21:55












            Not sure it is so "simple' ;)
            – Panther
            Feb 3 '16 at 22:24




            Not sure it is so "simple' ;)
            – Panther
            Feb 3 '16 at 22:24












            @bodhi.zazen Yes, it is that simple. :)
            – dobey
            Feb 4 '16 at 1:19




            @bodhi.zazen Yes, it is that simple. :)
            – dobey
            Feb 4 '16 at 1:19












            @DevRobot what will you do with the address?
            – muru
            Feb 4 '16 at 1:19




            @DevRobot what will you do with the address?
            – muru
            Feb 4 '16 at 1:19




            1




            1




            You can't access that address and it always changes. Accessing the clipboard by memory address isn't going to work. Not legitimately anyway. See github.com/ThomasHabets/clipsniff
            – coteyr
            Feb 4 '16 at 15:07






            You can't access that address and it always changes. Accessing the clipboard by memory address isn't going to work. Not legitimately anyway. See github.com/ThomasHabets/clipsniff
            – coteyr
            Feb 4 '16 at 15:07




















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f729360%2fwhere-are-the-contents-of-the-clipboard-stored%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局