If you need to share content from a man page, then you will need to convert the file to another format before sharing it with someone who doesn’t have access to the man Linux command. You will also need to convert it if you need to read a page in another program, on any other device or if you need to print it out. The conversion task can be accomplished quite easily at a standard Linux Bash command prompt. Once you have a PostScript file you can then convert this to the even more portable PDF format. First we’ll illustrate how to convert a man page to a PostScript file. Should you need a PDF file, then apply Method 2 after using Method 1.
Method 1: Converting a Man Page to a PS File
Select a graphical command prompt from the Root Window Menu. If your prompt does not end with the “$” symbol, then type bash and press enter. Make sure that you are in the Documents folder of your home directory by issuing the command: The exact location may differ depending on your particular distribution. Then issue the command: Replace the “COMMAND” string with the name of the command you want to typeset as a PostScript file. For example, if you had wanted to do this with the fdisk command: Type dir at the prompt to make sure the file is there.
Method 2: PDF Formatting for Man Pages
It’s also possible to convert a man page to a PDF file. Issue the following command to receive said file: Using our fdisk example before, you could try: Type dir at the prompt afterward to make sure the file was created fine.
How to Search for Strings in man PagesHow to Crop or Resize your PDF Pages Easily?How to View the Contents of a Text File from the Linux Command LineHow to Find MP3 Duration from the Linux Command Line