Saturday, March 24, 2018

Linux Command to Convert man page to PDF and TXT Files

Linux Command to Convert man page to PDF and TXT Files


FREQUENTLY ASKED QUESTIONS (Linux)
Q. How do i convert Linux man pages to PDFs and text files?
Well.. Sometimes you need to convert and download the Linux man pages in different file formats like .pdf, .txt, etc. This article explains to convert the Linux man pages into PDF and Text files using built in commands and tools in Linux.

Convert and Download "yum" man page to .PDF file
[root@server ~]# man -t yum | ps2pdf - yum.pdf

Convert and Download  "yum" man page to .TXT file
[root@server ~]# man -t yum | ps2ascii - yum.txt

Tested in Fedora, Redhat and CentOS linux systems.


visit link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.