What would be the difference in output between âman ifconfigâ and âman ifconfig | lessâ? [duplicate]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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?
command-line
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.
add a comment |Â
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?
command-line
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 readingman 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
add a comment |Â
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?
command-line
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
command-line
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 readingman 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
add a comment |Â
Try readingman 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
add a comment |Â
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
).
add a comment |Â
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.
add a comment |Â
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
).
add a comment |Â
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
).
add a comment |Â
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
).
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
).
answered Feb 22 at 7:51
muru
130k19274468
130k19274468
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Feb 21 at 18:56
mook765
2,9922818
2,9922818
add a comment |Â
add a comment |Â
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