How to Use the Linux tldr Command as a Faster Alternative to man Pages

The Linux man (manual) pages are the definitive source of documentation for every command-line utility. However, they are famously dense and written for technical completeness rather than quick reference. If you simply want to know the command to extract a .tar.gz archive or how to forcibly kill a process, reading through a 500-line manual page outlining every obscure flag is an inefficient use of your time. The tldr (Too Long; Didn’t Read) command is a community-driven alternative that provides concise, practical, and highly readable summaries of Linux commands, complete with the most common real-world examples.

What is the tldr Project?

The tldr pages are a collection of simplified, community-maintained help files. Instead of documenting the entire theoretical architecture of a command, a tldr page typically provides a one-sentence description followed by five to six bullet points showing exactly how to use the command in everyday scenarios. It is not designed to replace the man pages for deep technical troubleshooting; rather, it is designed to be the tool you use 95% of the time when you just need a quick syntax reminder.

Installing the tldr Client

Unlike man, the tldr client does not come pre-installed on most Linux distributions, but it is available in almost all default package repositories.

  1. Open your terminal.
  2. If you are using an Ubuntu or Debian-based system, update your package list and install it using apt: sudo apt update sudo apt install tldr
  3. If you are using an Arch-based system, use pacman: sudo pacman -S tldr
  4. If you are using a Red Hat, Fedora, or CentOS-based system, use dnf or yum: sudo dnf install tldr

Updating the Local Cache

Because the tldr pages are constantly being updated and expanded by the open-source community on GitHub, the client relies on a local cache. The very first time you install the tool, this cache is often empty.

  1. Before using the command for the first time, force it to download the latest page definitions by running: tldr --update

You should run this update command every few months to ensure you have the latest syntax examples for newly added utilities.

Using the tldr Command

Using tldr is exactly the same as using man. You simply append the name of the utility you want to learn about.

  1. To see practical examples of the tar command, type: tldr tar
  2. The output will immediately display in your terminal. You will see clear examples like: – Create a compressed archive from a directory: tar -czvf target.tar.gz path/to/directory – Extract a (compressed) archive into the current directory: tar -xvf source.tar[.gz|.bz2|.xz]

This instantly provides the exact flags (-czvf and -xvf) you need for the most common tasks, saving you the effort of deciphering the massive man tar document to figure out what c, z, v, and f actually mean.

Customising the Output

By default, the tldr client outputs coloured text to make the examples stand out from the descriptions. If you are writing a script or piping the output to a text file where ANSI colour codes would cause formatting issues, you can strip the colours using the -p (plain) flag.

tldr -p curl > curl_cheatsheet.txt

The tldr tool is one of the highest-return investments you can make in your Linux command-line productivity, transforming complex manual reading into instant, actionable cheat sheets.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.