Android Century
  • Home
  • Android Zone
    • Android Apps
    • Android Games
    • Apps APk Files
    • Games Apk Files
    • Apps Hack Tricks
  • Reviews
  • Fantasy Zone
    • Entertainment
    • Quotes and Status
    • Life Style
    • Home Made Tips
    • Hair Care
    • Skin Care
    • Fantasy Tips
  • Tricks
    • Free Recharge
    • Free Internet
    • shopping Cashback
    • Recharge Cashback
  • Tech
  • Mobiles
  • Gadgets
  • News
  • How To's
  • Software
Breaking
Loading...

Featured post

How to Take Great Photos With Apple's iPhone X

Recent Posts

Labels

  • Android Apk Files
  • Android Apps
  • Android Games
  • Apps Apk Files
  • Entertainment
  • Fantasy Tips
  • Gadgets
  • Hair Care
  • HomeMade Tips
  • How To's
  • News
  • Quotes
  • Quotes & Status
  • Recharge Cashback
  • Recharge Promo Codes
  • Shopping Cashback
  • Technology
  • skin care
Home / How To's / How to fix Pages Into Readable Explanations on Linux and macOS

How to fix Pages Into Readable Explanations on Linux and macOS

Latest Govt. Jobs 21:45:00 How To's Edit
When all else fails, read the manual. Command line users on Linux and Mac know they can type “man” followed by a command name to see a long, detailed explanation of that command. These man pages are useful but verbose. Sometimes all you need is a short, concise explanation of a command to refresh your memory
Here’s an easy way to get concise, practical explanations of commands used on the command lineon Linux and Mac. It’s a command line app called “tldr”, after the abbreviation for “too long; didn’t read”. The tl;dr abbreviation is used to write or request a shortened version of text, which is exactly what the tldr command does.

Install tldr on Ubuntu

The tldr command on Ubuntu is not available in any repository, so there’s a bit of a roundabout way of installing it. But it’s not hard.
First, we need to install NodeJS and the Node Package Manager (npm). Press Ctrl + Alt + T to open the Terminal and type the following command.
sudo apt install nodejs npm
Next, we’re going to use npm to install tldr. Type:
sudo npm install -g tldr
You should be able to use tldr now, but you may see an error saying, “No such file or directory” when you try.
shorten man pages with tldr command linux mac
You can fix this error by creating a symlink. Type the following command.

Install tldr on macOS

On macOS, we’ll use Homebrew, the package manager for macOS, to install tldr. Homebrew allows you to install any command line utility with just a few keystrokes. Adding Cask to Homebrew allows you to also install desktop apps, like Firefox and GIMP. Updating command line utilities and desktop apps is easy with Homebrew and Cask.
Homebrew is not installed by default. Head to the Homebrew website and copy the installation command from there. We didn’t include it here in case it changes.
To install Homebrew, open the Terminal from the Utilities folder in the Applications folder. Right-click at the command line prompt and select Paste to enter the Homebrew installation command you copied. Press Enter and follow the instructions as they’re presented.
Once Homebrew is installed, type the following command to install the tldr command.
brew install tldr
Now, you can use the tldr command to get short, concise explanations for commands.

Use tldr to Quickly Find Out How to Use a Command

We’ll use the ls command to illustrate the difference between using man and tldr. The screenshots are from Linux, but it works the same way on macOS.
Type the following command at the prompt.
man ls
You’ll see the long-winded, detailed explanation of the ls command that goes on for pages. Use the arrow keys and the Page Up and Page Down keys to navigate through the man page for the ls command.
shorten man pages with tldr command linux mac
Now, type the following command.
tldr ls
You’ll see a much shorter description of the most common usages of the ls command. Notice you don’t have to scroll through the results, at least much. We made our Terminal window slightly taller to show all the results at once.
shorten man pages with tldr command linux mac

Use the Web Version of tldr

If you don’t want to install tldr, or you’re having trouble doing so, there’s a great web version of the tldr utility at https://tldr.ostera.io/. They include a brief explanation on how to use the site. This is also handy if you’re already in a browser and want to quickly look up a command without opening a Terminal window.
shorten man pages with tldr command linux mac
For example, type “ls” in the search box at the top of the page. The results display immediately. You may find this even easier to read than the results of the tldr command on the command line.
shorten man pages with tldr command linux mac
They even provide an Edit this page on Github link at the bottom of the page for each command in case you see any mistakes.
You can also create or edit commands on the TLDR Pages website.
shorten man pages with tldr command linux mac
Need an offline copy? Download a PDF version of the tldr pages, for use later. You can even install a tldr app on your Android or iOS device.

man Pages Are Still Useful

The tldr command is handy for learning the basics about a command. But there are command parameters left out that you might find useful. So, if you don’t see what you’re looking for on the tldr page for a command, check the man page, if the command has one.
For example, the tldr page for the ls command leaves out the following useful parameters. Parameters are case sensitive.
  • -R: List subdirectories recursively.
  • -X: Sort alphabetically by the file extensions.
  • -d: List only the directories, not their contents.
Another example is the rm command, which removes files and directories. With a certain parameter, it can be used to wipe the entire contents of a specified directory. Be careful with this command as you can end up deleting critical system files if used incorrectly.
  • -I: Prompt once before removing more than three files, or when removing files recursively. This parameter is less intrusive than -i, while still protecting you against accidentally removing files you don’t want to remove.
  • -d: Remove empty directories.
While the tldr page for the rm command does list the -r parameter for recursively removing a directory and all its subdirectories, it doesn’t explain that rm does not remove non-empty directories by default. You must use -r or -R to recursively remove non-empty directories.

Save Time With the tldr Command

The tldr command gets right to the point with short explanations and practical examples of bash shell commands. You may even find concise explanations for some built-in commands no longer available as man entries, like the cd command.
You can find out all the built-in commands available in the bash shell by typing the following command on the command line.
man bash-builtins
You might also want to try out the Fish shell, which has additional features like auto-suggestions, VGA colors, and a scripting language inspired by modern programming languages like Python and Ruby.
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How to Use DroidVPN App For Free In...

How to HACK Google Play Music App

How to get BookMyShow Instant Disco...
How to fix Pages Into Readable Explanations on Linux and macOS How to fix Pages Into Readable Explanations on Linux and macOS Reviewed by Latest Govt. Jobs on 21:45:00 Rating: 5

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

TEST BOOK FOR GOVT ENTRANCE TEST

TEST BOOK FOR GOVT ENTRANCE TEST
Find All Latest book for preparation of SSC,RAILWAYBANK PO,RBI,BANK CLERK,GATE ME,GATE CE are available here in less prices, to check out the books click here

Translate

  • Popular Post
  • Random posts
  • Category

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & Earn Offer:  Hey Guys! Today I make an article about Teen Patti Referral ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Fitbit Zip 2017 review
    Fitbit PROS: Clever, accurate tracking Expandable online service Integration with 3rd ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...

Random Posts

  • Titanium Backup APK Latest Version
    Titanium Backup APK Latest Version
    21.02.2016 - 0 Comments
    Titanium Backup APK Latest Version 7.3.0In Tools by Developer Titanium…
  • Online giants plan offline push to sell smartphones
    Online giants plan offline push to sell smartphones
    23.03.2017 - 0 Comments
    Two of the country’s largest marketplaces, Amazon and Flipkart, are set to push sales of…
  • News of Amazon layoffs in US
    News of Amazon layoffs in US
    15.02.2018 - 0 Comments
    BENGALURU: Online retail giant Amazon’s reported move of laying off employees in its Seattle headquarters…
  • Panasonic’s Firefox OS is dead 2017
    Panasonic’s Firefox OS is dead 2017
    17.02.2017 - 0 Comments
    Perhaps the biggest trend with Panasonic’s lineup of TVs this year (aside from the company’s…
  • How to manage your Google Account on your Android phone
    How to manage your Google Account on your Android phone
    11.02.2017 - 0 Comments
    Your Google account is the lifeblood of your Android phone. From email to photos, payments, and, of…

Labels

Android Apk Files Android Apps Android Games Apps Apk Files Apps Hack Tricks Entertainment Free Internet Freecharge Gadgets Games Apk Files How To's Laptops Guide Mobiles Reviews Technology Viral's android zone free recharge

Entertainment

Tricks

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • Taotronics TT-BH22 Headphones Review
    We make it a ...
  • Bank wallets growing faster than e-wallets
    In the  bank ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Fitbit Zip 2017 review
    Fitbit PROS ...

Random Posts

  • Verizon close to Yahoo deal, price cut of $250-350 million - sources
    Verizon close to Yahoo deal, price cut of $250-350 million - sources
    16.02.2017 - 0 Comments
    Verizon Communications Inc is close to a revised deal to buy Yahoo Inc's core internet…
  • Hardware problems prompt Apple to pull the plug on LG’s 5K monitor
    Hardware problems prompt Apple to pull the plug on LG’s 5K monitor
    13.02.2017 - 0 Comments
    Apple has reportedly halted sales of LG’s 5K monitor following well-publicised interference…
  • IMF looking into crypto currencies
    IMF looking into crypto currencies
    27.01.2018 - 0 Comments
    DAVOS: IMF chief Christine Lagarde today said the multilateral financial institution is looking into…
  • How to Use Cortana with a Local User Account in Windows 10
    How to Use Cortana with a Local User Account in Windows 10
    12.03.2017 - 0 Comments
    You’ve created a local account in Windows and you want to use Cortana. However, you need a Microsoft…
  • Cat S60
    Cat S60
    17.03.2017 - 0 Comments
    Cat VERDICT This is a thick phone, but it boasts some impressive specs for a rugged handset along with…

Most Popular

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J ...
  • Top 5 Best SmartPhones under 7000 Rs (March 2017)
    Looking for the ...
  • Apple, IBM, Cisco are huge because of Indians, do not deny them H-1B visa: RBI Governor Urjit Patel
    ...
  • SAMSUNG GALAXY J7 (2016) Specifications
    SAMSUNG GALAXY J ...
  • BlackBerry Teases Marshmallow Beta Testing for Priv by Next Week
    Blackberry ...
  • LG Q6 Review
    LG Q6 Review
    2017 is ...

Contact Form

Name

Email *

Message *

Offers Zone

Created By Android Century Distributed by Android Century
  • Home
  • About us
  • Contact us
  • Privacy policy
  • Terms of use
  • Advertise here
Subscribe Via Email Subscribe To Android Century By Email And Get Free Updates. ;-)


Your email address is safe with us!