TranslateProject/sources/tech/20171129 TLDR pages Simplified Alternative To Linux Man Pages.md
2017-12-09 14:59:06 +08:00

6.7 KiB
Raw Blame History

TLDR pages: Simplified Alternative To Linux Man Pages

Working on the terminal and using various commands to carry out important tasks is an indispensable part of a Linux desktop experience. This open-source operating system possesses an abundance of commands that makes it impossible for any user to remember all of them. To make things more complex, each command has its own set of options to bring a wider set of functionality.

To solve this problem, Man Pages, short for manual pages, were created. First written in English, it contains tons of in-depth information about different commands. Sometimes, when youre looking for just basic information on a command, it can also become overwhelming. To solve this issue, TLDR pages was created.

Before going ahead and knowing more about it, dont forget to check a few more terminal tricks:

What are TLDR pages?

The GitHub page of TLDR pages for Linux/Unix describes it as a collection of simplified and community-driven man pages. Its an effort to make the experience of using man pages simpler with the help of practical examples. For those who dont know, TLDR is taken from common internet slang _ Too Long Didnt Read_ .

In case you wish to compare, lets take the example of tar command. The usual man page extends over 1,000 lines. Its an archiving utility thats often combined with a compression method like bzip or gzip. Take a look at its man page:

tar man page On the other hand, TLDR pages lets you simply take a glance at the command and see how it works. Tars TLDR page simply looks like this and comes with some handy examples of the most common tasks you can complete with this utility:

tar tldr page Lets take another example and show you what TLDR pages has to offer when it comes to apt:

tldr-page-of-apt Having shown you how TLDR works and makes your life easier, lets tell you how to install it on your Linux-based operating system.

How to install and use TLDR pages on Linux?

The most mature TLDR client is based on Node.js and you can install it easily using NPM package manager. In case Node and NPM are not available on your system, run the following command:

sudo apt-get install nodejs

sudo apt-get install npm 

In case youre using an OS other than Debian, Ubuntu, or Ubuntus derivatives, you can use yum, dnf, or pacman package manager as per your convenience.

Now, by running the following command in terminal, install TLDR client on your Linux machine:

sudo npm install  -g  tldr 

Once youve installed this terminal utility, it would be a good idea to update its cache before trying it out. To do so, run the following command:

tldr  --update 

After doing this, feel free to read the TLDR page of any Linux command. To do so, simply type:

tldr  <commandname> 

tldr kill command

You can also run the following help command to see all different parameters that can be used with TLDR to get the desired output. As usual, this help page is also accompanied with examples.

TLDR web, Android, and iOS versions

You would be pleasantly surprised to know that TLDR pages isnt limited to your Linux desktop. Instead, it can also be used in your web browser, which can be accessed from any machine.

To use TLDR web version, visit tldr.ostera.io and perform the required search operation.

Alternatively, you can also download the iOS and Android apps and keep learning new commands on the go.

tldr app ios

Did you find this cool Linux terminal trick interesting? Do give it a try and let us know your feedback.


via: https://fossbytes.com/tldr-pages-linux-man-pages-alternative/

作者:Adarsh Verma 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出