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