Science and technology

Replace man pages with Tealdeer on Linux

Man pages have been my go-to useful resource once I began exploring Linux. Certainly, man is essentially the most continuously used command when a newbie begins getting aware of the world of the command line. But man pages, with their in depth lists of choices and arguments, might be exhausting to decipher, which makes it obscure no matter you needed to know. If you need a better answer with example-based output, I feel tldr is the best choice.

What’s Tealdeer?

Tealdeer is an excellent implementation of tldr in Rust. It’s a community-driven man web page that offers quite simple examples of how instructions work. The better part about Tealdeer is that it has just about each command you’d usually use.

Install Tealdeer

On Linux, you’ll be able to set up Tealdeer out of your software program repository. For instance, on Fedora:

$ sudo dnf set up tealdeer

On macOS, use MacPorts or Homebrew.

Alternately, you’ll be able to construct and set up the instrument with Rust’s Cargo bundle supervisor:

$ cargo set up tealdeer

Use Tealdeer

Entering tldr --list returns the checklist of man pages tldr helps, like contact, tar, dnf, docker, zcat, zgrep, and so forth:

$ tldr --list

Using tldr with a selected command (like tar) reveals example-based man pages that describe all of the choices that you are able to do with that command:

$ tldr tar

  Archiving utility.
  Often mixed with a compression methodology, such as gzip or bzip2.
  More info: < program/tar>.

  [c]reate an archive and write it to a [f]ile:

      tar cf goal.tar file1 file2 file3

  [c]reate a g[z]ipped archive and write it to a [f]ile:

      tar czf goal.tar.gz file1 file2 file3

  [c]reate a g[z]ipped archive from a listing utilizing relative paths:

      tar czf goal.tar.gz --directory=path/to/listing .

  E[x]tract a (compressed) archive [f]ile into the present listing [v]erbosely:

      tar xvf supply.tar[.gz|.bz2|.xz]

  E[x]tract a (compressed) archive [f]ile into the goal listing:

      tar xf supply.tar[.gz|.bz2|.xz] --directory=listing

  [c]reate a compressed archive and write it to a [f]ile, utilizing [a]rchive suffix to find out the compression program:

      tar caf goal.tar.xz file1 file2 file3

To management the cache:

    $ tldr --update
    $ tldr --clear-cache

You can provide Tealdeer output some shade with the --color possibility, setting it to at all times, auto, and by no means. The default is auto, however I just like the added context shade offers, so I make mine everlasting with this addition to my ~/.bashrc file:

alias tldr='tldr --color at all times'


The fantastic thing about Tealdeer is you do not want a community connection to make use of it, besides if you’re updating the cache. So, even in case you are offline, you’ll be able to nonetheless seek for and study your new favourite command. For extra info, seek the advice of the instrument’s documentation.

Would you utilize Tealdeer? Or are you already utilizing it? Let us know what you suppose within the feedback beneath.

Most Popular

To Top