Empty file called 'sudo' in home directory

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











up vote
3
down vote

favorite












I have encountered empty file just called 'sudo' in home directory. The file size is 0 bytes. Is it safe to just delete this file?







share|improve this question
























    up vote
    3
    down vote

    favorite












    I have encountered empty file just called 'sudo' in home directory. The file size is 0 bytes. Is it safe to just delete this file?







    share|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I have encountered empty file just called 'sudo' in home directory. The file size is 0 bytes. Is it safe to just delete this file?







      share|improve this question












      I have encountered empty file just called 'sudo' in home directory. The file size is 0 bytes. Is it safe to just delete this file?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 10 '17 at 8:08









      Pekov

      1425




      1425




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          Yes, that's not a system file. It was probably created by mistake. Check its owner and creation date, that'll tell you more about it.



          You can safely delete it. At worst, you can recreate it via the command touch ~/sudo.



          Config files and other system files usually start with a dot (.). These are the so-called dotfiles, and you should not touch them unless you know what you're doing.






          share|improve this answer





























            up vote
            2
            down vote













            It would be weird if this file served any regular purpose. You can add to your question the output of your shell history filtered for sudo if it's not too long, and it should be clear where the file came from. The command to get that is



            history | grep sudo


            There's a good chance the file was created not from your shell though. If the ownership is root you can run the same command from root.






            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',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              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%2f403697%2fempty-file-called-sudo-in-home-directory%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              5
              down vote



              accepted










              Yes, that's not a system file. It was probably created by mistake. Check its owner and creation date, that'll tell you more about it.



              You can safely delete it. At worst, you can recreate it via the command touch ~/sudo.



              Config files and other system files usually start with a dot (.). These are the so-called dotfiles, and you should not touch them unless you know what you're doing.






              share|improve this answer


























                up vote
                5
                down vote



                accepted










                Yes, that's not a system file. It was probably created by mistake. Check its owner and creation date, that'll tell you more about it.



                You can safely delete it. At worst, you can recreate it via the command touch ~/sudo.



                Config files and other system files usually start with a dot (.). These are the so-called dotfiles, and you should not touch them unless you know what you're doing.






                share|improve this answer
























                  up vote
                  5
                  down vote



                  accepted







                  up vote
                  5
                  down vote



                  accepted






                  Yes, that's not a system file. It was probably created by mistake. Check its owner and creation date, that'll tell you more about it.



                  You can safely delete it. At worst, you can recreate it via the command touch ~/sudo.



                  Config files and other system files usually start with a dot (.). These are the so-called dotfiles, and you should not touch them unless you know what you're doing.






                  share|improve this answer














                  Yes, that's not a system file. It was probably created by mistake. Check its owner and creation date, that'll tell you more about it.



                  You can safely delete it. At worst, you can recreate it via the command touch ~/sudo.



                  Config files and other system files usually start with a dot (.). These are the so-called dotfiles, and you should not touch them unless you know what you're doing.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 10 '17 at 8:18

























                  answered Nov 10 '17 at 8:12









                  dr01

                  15.3k114769




                  15.3k114769






















                      up vote
                      2
                      down vote













                      It would be weird if this file served any regular purpose. You can add to your question the output of your shell history filtered for sudo if it's not too long, and it should be clear where the file came from. The command to get that is



                      history | grep sudo


                      There's a good chance the file was created not from your shell though. If the ownership is root you can run the same command from root.






                      share|improve this answer
























                        up vote
                        2
                        down vote













                        It would be weird if this file served any regular purpose. You can add to your question the output of your shell history filtered for sudo if it's not too long, and it should be clear where the file came from. The command to get that is



                        history | grep sudo


                        There's a good chance the file was created not from your shell though. If the ownership is root you can run the same command from root.






                        share|improve this answer






















                          up vote
                          2
                          down vote










                          up vote
                          2
                          down vote









                          It would be weird if this file served any regular purpose. You can add to your question the output of your shell history filtered for sudo if it's not too long, and it should be clear where the file came from. The command to get that is



                          history | grep sudo


                          There's a good chance the file was created not from your shell though. If the ownership is root you can run the same command from root.






                          share|improve this answer












                          It would be weird if this file served any regular purpose. You can add to your question the output of your shell history filtered for sudo if it's not too long, and it should be clear where the file came from. The command to get that is



                          history | grep sudo


                          There's a good chance the file was created not from your shell though. If the ownership is root you can run the same command from root.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 10 '17 at 16:53









                          Tomasz

                          8,05052560




                          8,05052560



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403697%2fempty-file-called-sudo-in-home-directory%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay