Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2979  / 2 Years ago, fri, october 21, 2022, 5:17:58

I've a largish man page (psql) that I'm trying to digest. I've tried redirecting the output of man to a file, but the output confuses LibreOffice enough that whole pages are missing, even if I arrange that the lines wrap properly (I set my window width to 79 before I issue the man command then have LibreOffice change the font size to 10 pt.)


So: I could use a different word processor, I guess. Or maybe there are better commands to use than man itself. Or maybe there's a way to bypass LibreOffice and send it directly to my printer (a Brother monochrome laser printer).


In the end, I just need something readable and physical so that I can mark it up with highlighters and write on it.


More From » printing

 Answers
7

To obtain a printed copy of a man page, say for psql, use:


man -t psql | lpr


Or as @4dummies suggests, if your printer supports duplexing:


man -t psql | lpr -o sides=two-sided-long-edge


One could even create a bash function for convenience:


prman() {
man -t "$1" | lpr -o sides=two-sided-long-edge
}

and then say:


prman psql


[#706] Friday, October 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jokaned

Total Points: 315
Total Questions: 116
Total Answers: 119

Location: Somalia
Member since Mon, Feb 27, 2023
1 Year ago
jokaned questions
;