Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
nixCraft 🐧
nixCraft 🐧
@nixCraft@mastodon.social  ·  activity timestamp 2 months ago

Do you want to print a Linux, macOS, *BSD, or Unix manual page? Perhaps you want a nicely rendered PS or PDF file? There is an easy way to do this. Open the terminal and run following commands:
```
man -t {command} > "{filename}.ps"
man -t sort>"sort.ps"

# open using default Doc viewer
xdg-open "sort.ps" # Linux
open "sort.ps" # macOS

# print it on printer named HP2
man -t sort | lp -d HP2
```

A screenshot showing various Linux and Unix command to print manual page and  get a nicely rendered PS or PDF file. It includes the following commands:

man -t {command} > command.ps
man -t {command} | lp # print it 
xdg-open  command.ps
A screenshot showing various Linux and Unix command to print manual page and get a nicely rendered PS or PDF file. It includes the following commands: man -t {command} > command.ps man -t {command} | lp # print it xdg-open command.ps
A screenshot showing various Linux and Unix command to print manual page and get a nicely rendered PS or PDF file. It includes the following commands: man -t {command} > command.ps man -t {command} | lp # print it xdg-open command.ps
  • Copy link
  • Flag this post
  • Block
Federation Bot
Federation Bot
@Federation_Bot replied  ·  activity timestamp 2 months ago

@nixCraft very nice. however, i thought the modern way is to build man pages using mdoc and to make formatted output with mandoc.

« Supported values for the output argument are ascii, html, the default of locale, man, markdown, pdf, ps, tree, and utf8. »

  • Copy link
  • Flag this comment
  • Block
Federation Bot
Federation Bot
@Federation_Bot replied  ·  activity timestamp 2 months ago

@nixCraft I usually run it through ps2pdf anyways

  • Copy link
  • Flag this comment
  • Block
zıəs uɐɟəʇs ✪
zıəs uɐɟəʇs ✪
@seiz@mastodon.social replied  ·  activity timestamp 2 months ago

@nixCraft Unfortunately, MacOS doesn't include a PS-Viewer anymore. Preview did open .ps files in the past just fine. Doesn't seem to be the case anymore.

  • Copy link
  • Flag this comment
  • Block

A small Bonfire corner on the internet

This is a small personal instance of Bonfire in the Fediverse.

A small Bonfire corner on the internet: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct