What does 2>&1 | tee mean?“brew formula” installation logsWhat does the @ sign and the number next to it mean in ls -l display?What does error “the Classic Environment is no longer supported” mean?What does a hard link do?What is “TALagent” and why is it “Exiting out of boredom”?What is wrong in this command about grepping and pandocing?What does “is not recognized as an internal or external command” error mean?What exactly does “out of application memory” mean?Unable to brew install wineterminal script to search CSV fileRe-installation from the internet fails with error code -2005F, what does it mean?

Does Hubble need to dump momentum of its reaction wheels?

Do equal angles necessarily mean a polygon is regular?

How can Charles Proxy change settings without admin rights after first time?

Going to get married soon, should I do it on Dec 31 or Jan 1?

Procedurally generate regions on island

What are the penalties for overstaying in USA?

Architecture of networked game engine

Syntax Error with 'if'

Why isn’t the tax system continuous rather than bracketed?

"It will become the talk of Paris" - translation into French

How to append a matrix element by element?

Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?

Does image quality of the lens affect "focus and recompose" technique?

Could Sauron have read Tom Bombadil's mind if Tom had held the Palantir?

Why is C++ initial allocation so much larger than C's?

How many codes are possible?

Was touching your nose a greeting in second millenium Mesopotamia?

Find smallest index that is identical to the value in an array

How come I was asked by a CBP officer why I was in the US?

How can I set command-line parameters through `.emacs` file?

Why does the A-4 Skyhawk sit nose-up when on ground?

Why aren't (poly-)cotton tents more popular?

How to determine what is the correct level of detail when modelling?

Pull-up sequence accumulator counter



What does 2>&1 | tee mean?


“brew formula” installation logsWhat does the @ sign and the number next to it mean in ls -l display?What does error “the Classic Environment is no longer supported” mean?What does a hard link do?What is “TALagent” and why is it “Exiting out of boredom”?What is wrong in this command about grepping and pandocing?What does “is not recognized as an internal or external command” error mean?What exactly does “out of application memory” mean?Unable to brew install wineterminal script to search CSV fileRe-installation from the internet fails with error code -2005F, what does it mean?






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








2















I read the answer by @grg to question “brew formula” installation logs:




brew install <formula> 2>&1 | tee install.log




So where exactly is this install.log file going to end up, and what exactly the 2>&1 | tee part of the command mean?










share|improve this question









New contributor



Fortnite Lucifer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    2















    I read the answer by @grg to question “brew formula” installation logs:




    brew install <formula> 2>&1 | tee install.log




    So where exactly is this install.log file going to end up, and what exactly the 2>&1 | tee part of the command mean?










    share|improve this question









    New contributor



    Fortnite Lucifer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      2












      2








      2








      I read the answer by @grg to question “brew formula” installation logs:




      brew install <formula> 2>&1 | tee install.log




      So where exactly is this install.log file going to end up, and what exactly the 2>&1 | tee part of the command mean?










      share|improve this question









      New contributor



      Fortnite Lucifer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I read the answer by @grg to question “brew formula” installation logs:




      brew install <formula> 2>&1 | tee install.log




      So where exactly is this install.log file going to end up, and what exactly the 2>&1 | tee part of the command mean?







      macos unix






      share|improve this question









      New contributor



      Fortnite Lucifer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question









      New contributor



      Fortnite Lucifer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question








      edited 5 hours ago







      Fortnite Lucifer













      New contributor



      Fortnite Lucifer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 8 hours ago









      Fortnite LuciferFortnite Lucifer

      133 bronze badges




      133 bronze badges




      New contributor



      Fortnite Lucifer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Fortnite Lucifer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes


















          2















          • The tee command prints the piped stdout to the file path given as well as displaying it in the terminal. This is commonly used for recording the output of commands to file which would otherwise only be ephemerally printed to the terminal.



            Without tee and using simple redirection of brew install > install.log would prevent stdout being printed to the terminal as well as the file, requiring the file to be accessed to view the messages.




          • 2>&1 redirects stderr to stdout alongside the existing stdout, meaning that the error messages are redirected as normal output.



            Without this, tee would only print stdout without the error messages to the install log.



          install.log is relative to the current directory.






          share|improve this answer






























            2














            2>&1 means "send any error messages (aka 'stderr') to the same output as any informational messages (aka 'stdout")."



            And



            | tee install.log means "whatever output there is should also be sent to the file install.log.






            share|improve this answer
































              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2















              • The tee command prints the piped stdout to the file path given as well as displaying it in the terminal. This is commonly used for recording the output of commands to file which would otherwise only be ephemerally printed to the terminal.



                Without tee and using simple redirection of brew install > install.log would prevent stdout being printed to the terminal as well as the file, requiring the file to be accessed to view the messages.




              • 2>&1 redirects stderr to stdout alongside the existing stdout, meaning that the error messages are redirected as normal output.



                Without this, tee would only print stdout without the error messages to the install log.



              install.log is relative to the current directory.






              share|improve this answer



























                2















                • The tee command prints the piped stdout to the file path given as well as displaying it in the terminal. This is commonly used for recording the output of commands to file which would otherwise only be ephemerally printed to the terminal.



                  Without tee and using simple redirection of brew install > install.log would prevent stdout being printed to the terminal as well as the file, requiring the file to be accessed to view the messages.




                • 2>&1 redirects stderr to stdout alongside the existing stdout, meaning that the error messages are redirected as normal output.



                  Without this, tee would only print stdout without the error messages to the install log.



                install.log is relative to the current directory.






                share|improve this answer

























                  2












                  2








                  2








                  • The tee command prints the piped stdout to the file path given as well as displaying it in the terminal. This is commonly used for recording the output of commands to file which would otherwise only be ephemerally printed to the terminal.



                    Without tee and using simple redirection of brew install > install.log would prevent stdout being printed to the terminal as well as the file, requiring the file to be accessed to view the messages.




                  • 2>&1 redirects stderr to stdout alongside the existing stdout, meaning that the error messages are redirected as normal output.



                    Without this, tee would only print stdout without the error messages to the install log.



                  install.log is relative to the current directory.






                  share|improve this answer














                  • The tee command prints the piped stdout to the file path given as well as displaying it in the terminal. This is commonly used for recording the output of commands to file which would otherwise only be ephemerally printed to the terminal.



                    Without tee and using simple redirection of brew install > install.log would prevent stdout being printed to the terminal as well as the file, requiring the file to be accessed to view the messages.




                  • 2>&1 redirects stderr to stdout alongside the existing stdout, meaning that the error messages are redirected as normal output.



                    Without this, tee would only print stdout without the error messages to the install log.



                  install.log is relative to the current directory.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 8 hours ago









                  grggrg

                  141k25 gold badges224 silver badges333 bronze badges




                  141k25 gold badges224 silver badges333 bronze badges























                      2














                      2>&1 means "send any error messages (aka 'stderr') to the same output as any informational messages (aka 'stdout")."



                      And



                      | tee install.log means "whatever output there is should also be sent to the file install.log.






                      share|improve this answer



























                        2














                        2>&1 means "send any error messages (aka 'stderr') to the same output as any informational messages (aka 'stdout")."



                        And



                        | tee install.log means "whatever output there is should also be sent to the file install.log.






                        share|improve this answer

























                          2












                          2








                          2







                          2>&1 means "send any error messages (aka 'stderr') to the same output as any informational messages (aka 'stdout")."



                          And



                          | tee install.log means "whatever output there is should also be sent to the file install.log.






                          share|improve this answer













                          2>&1 means "send any error messages (aka 'stderr') to the same output as any informational messages (aka 'stdout")."



                          And



                          | tee install.log means "whatever output there is should also be sent to the file install.log.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 8 hours ago









                          TJ LuomaTJ Luoma

                          12k3 gold badges40 silver badges81 bronze badges




                          12k3 gold badges40 silver badges81 bronze badges













                              Popular posts from this blog

                              Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                              Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                              Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її