Self Intro
Hello Guys!! This is Mohammed Montaser Motaleb. I have been working in the field of Cybersecurity for the last few months.
This is my first writing in Medium. ✍✍
Let's Begin today's topic.
The default source of assistance for Linux commands is man pages, although these are extremely detailed and unsuitable for novices.
Tldr can be useful in this scenario because it makes things more transparent and concise.
What is tldr and why is it preferable to man?
For assistance with Linux commands, the man command is the go-to resource, while tldr functions similarly to Man. The popular initial on the internet, TL;DR, stands for “Too Long; Didn’t Read.” Instead of man pages, the tldr command provides more precise and transparent pages that may be understood with the right command, for instance.
Each tldr page starts with the command’s name, a short description of its function in one sentence, and a URL to a more in-depth version of the relevant man page.
A valuable aspect of tldr is the list of examples. Although there are examples on the man pages, they normally appear at the bottom or in an unclear usage format.
Let’s take mkdir as an example, a command used for creating a directory/folder in the system. You may think you are an expert on this basic tool but tldr can reveal some hidden uses.
You may not be familiar with these two quite useful alternatives: “parents” and “mode” in the above image.
How to install tldr and utilize tldr
Various client applications can be used to read the tldr pages because they are written in Markdown. (Markdown is a simple syntax that may be used to format text as boldface, lists, headings, and more.)
To install tldr, the original terminal application requires Javascript Node Package Manager or npm.
npm install -g tldrhttps://tldr.sh/#installation
Installation instructions can be found here
You can also get tldr as a snap package if you use the snap. The following command can be used to install tldr from snap.
sudo snap install tldr
After installation, just like with man, use tldr and pass the name of a command
tldr ls
Without having to go through the entire manual command, this command will return all of the necessary ls commands together with a few simple usage examples, making it simple to grasp.
Any text that might appear as an example or the description of a command can be found by searching the tldr pages. Simply use the “ — search” selection.
tldr -search “option”
There is also an interesting matter which is you can even use tldr to get information about itself:
Examples covering every scenario, along with information for certain systems and alternatives for language-specific support can be found with tldr.
Web Version of tldr
The tldr pages are available on the command line, exactly where you want them. The official website features a user interface optimized for your browser and has all the same information.
On the website, the search indicates whether the Mac or Linux-specific command and autocomplete is available.
Every page has a link to the relevant GitHub source. GitHub is a wonderful place to start if you ever want to contribute to the tldr project.
Ending
The value of paying attention to little details was emphasized by this experience, as even the most neglected features may provide important insights.
If you liked this piece of writing, I’d love for you to join me for my next ones!
Give a clap, share it around, and keep that curiosity alive! 🖋🖋