0

I was trying to render the troff file https://github.com/bit-team/backintime/blob/master/common/man/C/backintime-config.1 in terminal.

How can I make the output (using cat or some other utility) look like the way man outputs troff file in the terminal?

Do I need to convert the troff file to some format understood by the terminal?


Note: I am not looking to export it to pdf or html

  • The question does not specify an operating system, and man built upon groff exists on at least (older) FreeBSD and Linux-based operating systems. – JdeBP Jul 7 '20 at 16:27
  • I'm really unfamiliar with the subject, but groffer --tty your_file is probably an easy way. (I see that groffer is provided by the groff package on Ubuntu, which is likely not installed by default). – fra-san Jul 7 '20 at 18:14
0

Just do

man "${Path-To-Troff-File}" 
  • It's not that simple. With some implementations of man this only works if the path contains a directory prefix. – JdeBP Jul 7 '20 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.