Use & but still print to the console

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 margin-bottom:0;







up vote
0
down vote

favorite












I'd like to find the "cpuinfo" file and tried



$ find / -iregex ".*cpuinfo.*" 2>/dev/null &
[1] 7996


However, it still print results to the console



$ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/cpuinfo.rb
/usr/local/lib/python3.6/site-packages/numpy/distutils/cpuinfo.py
/usr/local/lib/python3.6/site-packages/numpy/distutils/__pycache__/cpuinfo.cpython-36.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.pyc


How to hide them entirely background?







share|improve this question















  • 4




    What is the purpose of this?
    – Jesse_b
    Jul 29 at 2:35










  • Where do you want to print the search result? This command with full output redirected to /dev/null makes no sense.
    – Bob
    Jul 29 at 3:22
















up vote
0
down vote

favorite












I'd like to find the "cpuinfo" file and tried



$ find / -iregex ".*cpuinfo.*" 2>/dev/null &
[1] 7996


However, it still print results to the console



$ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/cpuinfo.rb
/usr/local/lib/python3.6/site-packages/numpy/distutils/cpuinfo.py
/usr/local/lib/python3.6/site-packages/numpy/distutils/__pycache__/cpuinfo.cpython-36.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.pyc


How to hide them entirely background?







share|improve this question















  • 4




    What is the purpose of this?
    – Jesse_b
    Jul 29 at 2:35










  • Where do you want to print the search result? This command with full output redirected to /dev/null makes no sense.
    – Bob
    Jul 29 at 3:22












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'd like to find the "cpuinfo" file and tried



$ find / -iregex ".*cpuinfo.*" 2>/dev/null &
[1] 7996


However, it still print results to the console



$ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/cpuinfo.rb
/usr/local/lib/python3.6/site-packages/numpy/distutils/cpuinfo.py
/usr/local/lib/python3.6/site-packages/numpy/distutils/__pycache__/cpuinfo.cpython-36.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.pyc


How to hide them entirely background?







share|improve this question











I'd like to find the "cpuinfo" file and tried



$ find / -iregex ".*cpuinfo.*" 2>/dev/null &
[1] 7996


However, it still print results to the console



$ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/cpuinfo.rb
/usr/local/lib/python3.6/site-packages/numpy/distutils/cpuinfo.py
/usr/local/lib/python3.6/site-packages/numpy/distutils/__pycache__/cpuinfo.cpython-36.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.pyc


How to hide them entirely background?









share|improve this question










share|improve this question




share|improve this question









asked Jul 29 at 2:28









JawSaw

2949




2949







  • 4




    What is the purpose of this?
    – Jesse_b
    Jul 29 at 2:35










  • Where do you want to print the search result? This command with full output redirected to /dev/null makes no sense.
    – Bob
    Jul 29 at 3:22












  • 4




    What is the purpose of this?
    – Jesse_b
    Jul 29 at 2:35










  • Where do you want to print the search result? This command with full output redirected to /dev/null makes no sense.
    – Bob
    Jul 29 at 3:22







4




4




What is the purpose of this?
– Jesse_b
Jul 29 at 2:35




What is the purpose of this?
– Jesse_b
Jul 29 at 2:35












Where do you want to print the search result? This command with full output redirected to /dev/null makes no sense.
– Bob
Jul 29 at 3:22




Where do you want to print the search result? This command with full output redirected to /dev/null makes no sense.
– Bob
Jul 29 at 3:22










2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










If you want to hide all output you can redirect stdin and stdout:



find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &


Or with bash:



find / -iregex ".*cpuinfo.*" &>/dev/null &





share|improve this answer






























    up vote
    0
    down vote













    To have result of the "cpuinfo" file search available with errors suppressed, execute the command find with screen utility.



    Just start your search with screen detached:



    screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null


    To reattach screen with the command runnung do



    screen -r


    Since leading dollar sign $ is present in your command and search will be performed inside root /, consider to execute find with sudo or as root user.






    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%2f459118%2fuse-but-still-print-to-the-console%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
      3
      down vote



      accepted










      If you want to hide all output you can redirect stdin and stdout:



      find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &


      Or with bash:



      find / -iregex ".*cpuinfo.*" &>/dev/null &





      share|improve this answer



























        up vote
        3
        down vote



        accepted










        If you want to hide all output you can redirect stdin and stdout:



        find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &


        Or with bash:



        find / -iregex ".*cpuinfo.*" &>/dev/null &





        share|improve this answer

























          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          If you want to hide all output you can redirect stdin and stdout:



          find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &


          Or with bash:



          find / -iregex ".*cpuinfo.*" &>/dev/null &





          share|improve this answer















          If you want to hide all output you can redirect stdin and stdout:



          find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &


          Or with bash:



          find / -iregex ".*cpuinfo.*" &>/dev/null &






          share|improve this answer















          share|improve this answer



          share|improve this answer








          edited Jul 29 at 12:13


























          answered Jul 29 at 2:34









          Jesse_b

          10.1k12658




          10.1k12658






















              up vote
              0
              down vote













              To have result of the "cpuinfo" file search available with errors suppressed, execute the command find with screen utility.



              Just start your search with screen detached:



              screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null


              To reattach screen with the command runnung do



              screen -r


              Since leading dollar sign $ is present in your command and search will be performed inside root /, consider to execute find with sudo or as root user.






              share|improve this answer

























                up vote
                0
                down vote













                To have result of the "cpuinfo" file search available with errors suppressed, execute the command find with screen utility.



                Just start your search with screen detached:



                screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null


                To reattach screen with the command runnung do



                screen -r


                Since leading dollar sign $ is present in your command and search will be performed inside root /, consider to execute find with sudo or as root user.






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  To have result of the "cpuinfo" file search available with errors suppressed, execute the command find with screen utility.



                  Just start your search with screen detached:



                  screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null


                  To reattach screen with the command runnung do



                  screen -r


                  Since leading dollar sign $ is present in your command and search will be performed inside root /, consider to execute find with sudo or as root user.






                  share|improve this answer













                  To have result of the "cpuinfo" file search available with errors suppressed, execute the command find with screen utility.



                  Just start your search with screen detached:



                  screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null


                  To reattach screen with the command runnung do



                  screen -r


                  Since leading dollar sign $ is present in your command and search will be performed inside root /, consider to execute find with sudo or as root user.







                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered Jul 29 at 3:40









                  Bob

                  5057




                  5057






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459118%2fuse-but-still-print-to-the-console%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