Terminal runs commands on startup and I cannot find where they are coming from

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I have accidentally put winehq.key into /etc/bash_completion.d/ in the process of docker-machine completion installation.



I've tried to set up docker-machine auto completion and followed these instructions from the official website: https://docs.docker.com/machine/completion/



I've copied this to my terminal:



sudo curl -L https://raw.githubusercontent.com/docker/machine/v0.16.0/contrib/completion/bash/docker-machine.bash -o /etc/bash_completion.d/docker-machine


Now every time I open a new terminal, it tries to run something that looks like the following:



-----BEGIN: command not found
mQGNBFwOmrgBDAC9FZW3dFpew1hwDaqRfdQQ1ABcmOYu1NKZHwYjd+bGvcR2LRGe: command not found
bash: R5dfRqG1Uc/5r6CPCMvnWxFprymkqKEADn8eFn+aCnPx03HrhA+lNEbciPfTHylt: No such file or directory
bash: 6jCdl6eoCCkKNOIbr/MMSkd2KqAqDVM5cnnlQ7q+AXzwNpj3RGJVoBxbS0nn9JWY: No such file or directory
QNQrWh9rAcMIGT+b1le0: command not found
=4lsa: command not found
-----END: command not found


I did not copy everything just a few lines.



I removed the file I copied using curl, but it did not work. It seems that there is nothing new in ~/.bashrc as well. How to prevent terminal from running this on startup?










share|improve this question



















  • 1





    It appears to try to execute a GnuPG/PGP key or message. Have you also looked in ~/.bash_profile and/or ~/.profile? Do you have calls to gpg in any of these files?

    – Kusalananda
    Mar 15 at 9:52












  • I don't have ~/.bash_profile and ~/.profile was last modified a year ago

    – YKY
    Mar 15 at 9:57






  • 1





    welcome, Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winhq somewhere.

    – GAD3R
    Mar 15 at 10:30







  • 1





    thanks. It was winehq.key in bash_completion.d directory. You can post it as an answer.

    – YKY
    Mar 15 at 10:31


















2















I have accidentally put winehq.key into /etc/bash_completion.d/ in the process of docker-machine completion installation.



I've tried to set up docker-machine auto completion and followed these instructions from the official website: https://docs.docker.com/machine/completion/



I've copied this to my terminal:



sudo curl -L https://raw.githubusercontent.com/docker/machine/v0.16.0/contrib/completion/bash/docker-machine.bash -o /etc/bash_completion.d/docker-machine


Now every time I open a new terminal, it tries to run something that looks like the following:



-----BEGIN: command not found
mQGNBFwOmrgBDAC9FZW3dFpew1hwDaqRfdQQ1ABcmOYu1NKZHwYjd+bGvcR2LRGe: command not found
bash: R5dfRqG1Uc/5r6CPCMvnWxFprymkqKEADn8eFn+aCnPx03HrhA+lNEbciPfTHylt: No such file or directory
bash: 6jCdl6eoCCkKNOIbr/MMSkd2KqAqDVM5cnnlQ7q+AXzwNpj3RGJVoBxbS0nn9JWY: No such file or directory
QNQrWh9rAcMIGT+b1le0: command not found
=4lsa: command not found
-----END: command not found


I did not copy everything just a few lines.



I removed the file I copied using curl, but it did not work. It seems that there is nothing new in ~/.bashrc as well. How to prevent terminal from running this on startup?










share|improve this question



















  • 1





    It appears to try to execute a GnuPG/PGP key or message. Have you also looked in ~/.bash_profile and/or ~/.profile? Do you have calls to gpg in any of these files?

    – Kusalananda
    Mar 15 at 9:52












  • I don't have ~/.bash_profile and ~/.profile was last modified a year ago

    – YKY
    Mar 15 at 9:57






  • 1





    welcome, Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winhq somewhere.

    – GAD3R
    Mar 15 at 10:30







  • 1





    thanks. It was winehq.key in bash_completion.d directory. You can post it as an answer.

    – YKY
    Mar 15 at 10:31














2












2








2








I have accidentally put winehq.key into /etc/bash_completion.d/ in the process of docker-machine completion installation.



I've tried to set up docker-machine auto completion and followed these instructions from the official website: https://docs.docker.com/machine/completion/



I've copied this to my terminal:



sudo curl -L https://raw.githubusercontent.com/docker/machine/v0.16.0/contrib/completion/bash/docker-machine.bash -o /etc/bash_completion.d/docker-machine


Now every time I open a new terminal, it tries to run something that looks like the following:



-----BEGIN: command not found
mQGNBFwOmrgBDAC9FZW3dFpew1hwDaqRfdQQ1ABcmOYu1NKZHwYjd+bGvcR2LRGe: command not found
bash: R5dfRqG1Uc/5r6CPCMvnWxFprymkqKEADn8eFn+aCnPx03HrhA+lNEbciPfTHylt: No such file or directory
bash: 6jCdl6eoCCkKNOIbr/MMSkd2KqAqDVM5cnnlQ7q+AXzwNpj3RGJVoBxbS0nn9JWY: No such file or directory
QNQrWh9rAcMIGT+b1le0: command not found
=4lsa: command not found
-----END: command not found


I did not copy everything just a few lines.



I removed the file I copied using curl, but it did not work. It seems that there is nothing new in ~/.bashrc as well. How to prevent terminal from running this on startup?










share|improve this question
















I have accidentally put winehq.key into /etc/bash_completion.d/ in the process of docker-machine completion installation.



I've tried to set up docker-machine auto completion and followed these instructions from the official website: https://docs.docker.com/machine/completion/



I've copied this to my terminal:



sudo curl -L https://raw.githubusercontent.com/docker/machine/v0.16.0/contrib/completion/bash/docker-machine.bash -o /etc/bash_completion.d/docker-machine


Now every time I open a new terminal, it tries to run something that looks like the following:



-----BEGIN: command not found
mQGNBFwOmrgBDAC9FZW3dFpew1hwDaqRfdQQ1ABcmOYu1NKZHwYjd+bGvcR2LRGe: command not found
bash: R5dfRqG1Uc/5r6CPCMvnWxFprymkqKEADn8eFn+aCnPx03HrhA+lNEbciPfTHylt: No such file or directory
bash: 6jCdl6eoCCkKNOIbr/MMSkd2KqAqDVM5cnnlQ7q+AXzwNpj3RGJVoBxbS0nn9JWY: No such file or directory
QNQrWh9rAcMIGT+b1le0: command not found
=4lsa: command not found
-----END: command not found


I did not copy everything just a few lines.



I removed the file I copied using curl, but it did not work. It seems that there is nothing new in ~/.bashrc as well. How to prevent terminal from running this on startup?







linux bash ubuntu docker






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 at 13:41









Jeff Schaller

45k1164147




45k1164147










asked Mar 15 at 9:47









YKYYKY

1134




1134







  • 1





    It appears to try to execute a GnuPG/PGP key or message. Have you also looked in ~/.bash_profile and/or ~/.profile? Do you have calls to gpg in any of these files?

    – Kusalananda
    Mar 15 at 9:52












  • I don't have ~/.bash_profile and ~/.profile was last modified a year ago

    – YKY
    Mar 15 at 9:57






  • 1





    welcome, Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winhq somewhere.

    – GAD3R
    Mar 15 at 10:30







  • 1





    thanks. It was winehq.key in bash_completion.d directory. You can post it as an answer.

    – YKY
    Mar 15 at 10:31













  • 1





    It appears to try to execute a GnuPG/PGP key or message. Have you also looked in ~/.bash_profile and/or ~/.profile? Do you have calls to gpg in any of these files?

    – Kusalananda
    Mar 15 at 9:52












  • I don't have ~/.bash_profile and ~/.profile was last modified a year ago

    – YKY
    Mar 15 at 9:57






  • 1





    welcome, Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winhq somewhere.

    – GAD3R
    Mar 15 at 10:30







  • 1





    thanks. It was winehq.key in bash_completion.d directory. You can post it as an answer.

    – YKY
    Mar 15 at 10:31








1




1





It appears to try to execute a GnuPG/PGP key or message. Have you also looked in ~/.bash_profile and/or ~/.profile? Do you have calls to gpg in any of these files?

– Kusalananda
Mar 15 at 9:52






It appears to try to execute a GnuPG/PGP key or message. Have you also looked in ~/.bash_profile and/or ~/.profile? Do you have calls to gpg in any of these files?

– Kusalananda
Mar 15 at 9:52














I don't have ~/.bash_profile and ~/.profile was last modified a year ago

– YKY
Mar 15 at 9:57





I don't have ~/.bash_profile and ~/.profile was last modified a year ago

– YKY
Mar 15 at 9:57




1




1





welcome, Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winhq somewhere.

– GAD3R
Mar 15 at 10:30






welcome, Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winhq somewhere.

– GAD3R
Mar 15 at 10:30





1




1





thanks. It was winehq.key in bash_completion.d directory. You can post it as an answer.

– YKY
Mar 15 at 10:31






thanks. It was winehq.key in bash_completion.d directory. You can post it as an answer.

– YKY
Mar 15 at 10:31











1 Answer
1






active

oldest

votes


















1














Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winehq somewhere.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f506460%2fterminal-runs-commands-on-startup-and-i-cannot-find-where-they-are-coming-from%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winehq somewhere.






    share|improve this answer



























      1














      Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winehq somewhere.






      share|improve this answer

























        1












        1








        1







        Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winehq somewhere.






        share|improve this answer













        Check the filenames under /etc/bash_completion.d/ directory and its contents. You have added the gpg key of winehq somewhere.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 15 at 10:34









        GAD3RGAD3R

        28.2k1958114




        28.2k1958114



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f506460%2fterminal-runs-commands-on-startup-and-i-cannot-find-where-they-are-coming-from%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 to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?