Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,581
Rep:
Printing man-pages in original format
Good morning everybody.
With the usual man "command" I get very nicely formatted information on the screen. How can I print it, retaining the nice features like bold fonts, sensible paragraphs, carriage-returns, line-spacing etc.etc.?
I tried man "command" > command.text but got ugly results.
My distribution has a built in help feature, which allows printing, but with a bigger font and not in the original layout. Anybody any ideas/experiences?
Last edited by JZL240I-U; 01-10-2007 at 07:02 AM.
Reason: corrcting typo
I think you need to get creative and pipe the file right to your printer device. I am not sure if it will retain formatting but....
man whatever | cat >> /dev/lpd0
might work for you depending on how your printing is set up.
A better idea might be to go to the LDP website where they have all the manpages in html and print them from there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.