6.7 KiB
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 you’re 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, don’t 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. It’s an effort to make the experience of using man pages simpler with the help of practical examples. For those who don’t know, TLDR is taken from common internet slang _ Too Long Didn’t Read_ .
In case you wish to compare, let’s take the example of tar command. The usual man page extends over 1,000 lines. It’s an archiving utility that’s often combined with a compression method like bzip or gzip. Take a look at its man page:
On the other hand, TLDR pages lets you simply take a glance at the command and see how it works. Tar’s TLDR page simply looks like this and comes with some handy examples of the most common tasks you can complete with this utility:
Let’s take another example and show you what TLDR pages has to offer when it comes to apt:
Having shown you how TLDR works and makes your life easier, let’s 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 you’re using an OS other than Debian, Ubuntu, or Ubuntu’s 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 you’ve 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>
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 isn’t 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.
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