I will show you how to output the output result of the Linux man
command to a file.
[[email protected] ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[[email protected] ~]#
man command | col -bfx> file
[[email protected] ~]# man top | col -bfx > top.txt
[[email protected] ~]#
In CentOS 7
man top | col -bfx > top.txt
With the result of
man top > top2.txt
The result is the same.
[[email protected] ~]# man top | col -bfx > top.txt
[[email protected] ~]# man top > top2.txt
[[email protected] ~]# diff top.txt top2.txt
[[email protected] ~]#
that's all
Recommended Posts