Get a Summarized version of man pages


Borislav Hadzhiev

Sun Dec 27 20201 min read

Use an npm package to access the tldr of man pages for unix commands

I rarely use the man pages, because it's way quicker to google for the syntax of a command or for a specific flag than go through a large volume of information that you most likely don't need

However I found a package that summarizes the output of the man pages and offers a simpler alternative - tldr

In order to use it all you have to do is install it via npm:

npm install -g tldr

Then in your command line type tldr <command>:

tldr ls

The output shows ls - List directory contents. and the most commonly used flags with the ls command and their purpose, i.e.:

- List files one per line:
  ls -1

- List all files, including hidden files:
  ls -a

- List all files, with trailing / added to directory names:
  ls -F


This saves me a lot of time having to parse through the verbose man pages.

Join my newsletter

I'll send you 1 email a week with links to all of the articles I've written that week

Buy Me A Coffee