What would be the difference in output between “man ifconfig” and “man ifconfig | less”? [duplicate]

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








up vote
0
down vote

favorite













This question already has an answer here:



  • How can I get help on terminal commands?

    9 answers



I am stuck currently on this question while learning Linux. Can anyone help me?










share|improve this question













marked as duplicate by dessert, Fabby, user535733, Eric Carvalho, muru Feb 28 at 1:41


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Try reading man man
    – glenn jackman
    Feb 21 at 18:49










  • "man" displays manual pages for a command. Why not take a look at the manual for the less command, so "man less". Less is acommand that will hold the terminal open with whatever you have printed to the screen and allow you to scroll up and down. There is also the command "more".
    – hatterman
    Feb 21 at 18:53










  • And there's a third one: man -P less ifconfig – see the duplicate question I linked.
    – dessert
    Feb 21 at 18:58














up vote
0
down vote

favorite













This question already has an answer here:



  • How can I get help on terminal commands?

    9 answers



I am stuck currently on this question while learning Linux. Can anyone help me?










share|improve this question













marked as duplicate by dessert, Fabby, user535733, Eric Carvalho, muru Feb 28 at 1:41


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Try reading man man
    – glenn jackman
    Feb 21 at 18:49










  • "man" displays manual pages for a command. Why not take a look at the manual for the less command, so "man less". Less is acommand that will hold the terminal open with whatever you have printed to the screen and allow you to scroll up and down. There is also the command "more".
    – hatterman
    Feb 21 at 18:53










  • And there's a third one: man -P less ifconfig – see the duplicate question I linked.
    – dessert
    Feb 21 at 18:58












up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:



  • How can I get help on terminal commands?

    9 answers



I am stuck currently on this question while learning Linux. Can anyone help me?










share|improve this question














This question already has an answer here:



  • How can I get help on terminal commands?

    9 answers



I am stuck currently on this question while learning Linux. Can anyone help me?





This question already has an answer here:



  • How can I get help on terminal commands?

    9 answers







command-line






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 21 at 18:33









Undertaken

194




194




marked as duplicate by dessert, Fabby, user535733, Eric Carvalho, muru Feb 28 at 1:41


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by dessert, Fabby, user535733, Eric Carvalho, muru Feb 28 at 1:41


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • Try reading man man
    – glenn jackman
    Feb 21 at 18:49










  • "man" displays manual pages for a command. Why not take a look at the manual for the less command, so "man less". Less is acommand that will hold the terminal open with whatever you have printed to the screen and allow you to scroll up and down. There is also the command "more".
    – hatterman
    Feb 21 at 18:53










  • And there's a third one: man -P less ifconfig – see the duplicate question I linked.
    – dessert
    Feb 21 at 18:58
















  • Try reading man man
    – glenn jackman
    Feb 21 at 18:49










  • "man" displays manual pages for a command. Why not take a look at the manual for the less command, so "man less". Less is acommand that will hold the terminal open with whatever you have printed to the screen and allow you to scroll up and down. There is also the command "more".
    – hatterman
    Feb 21 at 18:53










  • And there's a third one: man -P less ifconfig – see the duplicate question I linked.
    – dessert
    Feb 21 at 18:58















Try reading man man
– glenn jackman
Feb 21 at 18:49




Try reading man man
– glenn jackman
Feb 21 at 18:49












"man" displays manual pages for a command. Why not take a look at the manual for the less command, so "man less". Less is acommand that will hold the terminal open with whatever you have printed to the screen and allow you to scroll up and down. There is also the command "more".
– hatterman
Feb 21 at 18:53




"man" displays manual pages for a command. Why not take a look at the manual for the less command, so "man less". Less is acommand that will hold the terminal open with whatever you have printed to the screen and allow you to scroll up and down. There is also the command "more".
– hatterman
Feb 21 at 18:53












And there's a third one: man -P less ifconfig – see the duplicate question I linked.
– dessert
Feb 21 at 18:58




And there's a third one: man -P less ifconfig – see the duplicate question I linked.
– dessert
Feb 21 at 18:58










2 Answers
2






active

oldest

votes

















up vote
1
down vote













From man man, searching for pipe:



MAN_KEEP_FORMATTING
Normally, when output is not being directed to a terminal (such
as to a file or a pipe), formatting characters are discarded to
make it easier to read the result without special tools.
However, if $MAN_KEEP_FORMATTING is set to any non-empty value,
these formatting characters are retained. This may be useful
for wrappers around man that can interpret formatting
characters.


It follows that man may omit formatting in man ifconfig | less, depending on environment settings. As others have noted, man ifconfig itself may not open less, also depending on environment settings (I have set it to open vim).






share|improve this answer



























    up vote
    0
    down vote













    It seems that the text of the manual page is processed slightly different.
    man renders some of the text bold, which is not the case if you pipe the output to less.
    Another visual different is that man shows a status line in the terminal.






    share|improve this answer



























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      From man man, searching for pipe:



      MAN_KEEP_FORMATTING
      Normally, when output is not being directed to a terminal (such
      as to a file or a pipe), formatting characters are discarded to
      make it easier to read the result without special tools.
      However, if $MAN_KEEP_FORMATTING is set to any non-empty value,
      these formatting characters are retained. This may be useful
      for wrappers around man that can interpret formatting
      characters.


      It follows that man may omit formatting in man ifconfig | less, depending on environment settings. As others have noted, man ifconfig itself may not open less, also depending on environment settings (I have set it to open vim).






      share|improve this answer
























        up vote
        1
        down vote













        From man man, searching for pipe:



        MAN_KEEP_FORMATTING
        Normally, when output is not being directed to a terminal (such
        as to a file or a pipe), formatting characters are discarded to
        make it easier to read the result without special tools.
        However, if $MAN_KEEP_FORMATTING is set to any non-empty value,
        these formatting characters are retained. This may be useful
        for wrappers around man that can interpret formatting
        characters.


        It follows that man may omit formatting in man ifconfig | less, depending on environment settings. As others have noted, man ifconfig itself may not open less, also depending on environment settings (I have set it to open vim).






        share|improve this answer






















          up vote
          1
          down vote










          up vote
          1
          down vote









          From man man, searching for pipe:



          MAN_KEEP_FORMATTING
          Normally, when output is not being directed to a terminal (such
          as to a file or a pipe), formatting characters are discarded to
          make it easier to read the result without special tools.
          However, if $MAN_KEEP_FORMATTING is set to any non-empty value,
          these formatting characters are retained. This may be useful
          for wrappers around man that can interpret formatting
          characters.


          It follows that man may omit formatting in man ifconfig | less, depending on environment settings. As others have noted, man ifconfig itself may not open less, also depending on environment settings (I have set it to open vim).






          share|improve this answer












          From man man, searching for pipe:



          MAN_KEEP_FORMATTING
          Normally, when output is not being directed to a terminal (such
          as to a file or a pipe), formatting characters are discarded to
          make it easier to read the result without special tools.
          However, if $MAN_KEEP_FORMATTING is set to any non-empty value,
          these formatting characters are retained. This may be useful
          for wrappers around man that can interpret formatting
          characters.


          It follows that man may omit formatting in man ifconfig | less, depending on environment settings. As others have noted, man ifconfig itself may not open less, also depending on environment settings (I have set it to open vim).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 22 at 7:51









          muru

          130k19274468




          130k19274468






















              up vote
              0
              down vote













              It seems that the text of the manual page is processed slightly different.
              man renders some of the text bold, which is not the case if you pipe the output to less.
              Another visual different is that man shows a status line in the terminal.






              share|improve this answer
























                up vote
                0
                down vote













                It seems that the text of the manual page is processed slightly different.
                man renders some of the text bold, which is not the case if you pipe the output to less.
                Another visual different is that man shows a status line in the terminal.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  It seems that the text of the manual page is processed slightly different.
                  man renders some of the text bold, which is not the case if you pipe the output to less.
                  Another visual different is that man shows a status line in the terminal.






                  share|improve this answer












                  It seems that the text of the manual page is processed slightly different.
                  man renders some of the text bold, which is not the case if you pipe the output to less.
                  Another visual different is that man shows a status line in the terminal.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 21 at 18:56









                  mook765

                  2,9922818




                  2,9922818












                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491