Ich werde Ihnen zeigen, wie Sie das Ausgabeergebnis des Linux-Befehls man
in eine Datei ausgeben.
[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
Mit dem Ergebnis von
man top > top2.txt
Das Ergebnis ist das gleiche.
[root@CENTOS7 ~]# man top | col -bfx > top.txt
[root@CENTOS7 ~]# man top > top2.txt
[root@CENTOS7 ~]# diff top.txt top2.txt
[root@CENTOS7 ~]#
das ist alles