Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 25, 2016, 03:56:21 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: No time for Man pages? Cheat!  (Read 1925 times)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 2,880
    • View Profile
    • Donate to Member
No time for Man pages? Cheat!
« on: August 10, 2014, 03:51:14 PM »
Quote
Cheat allows you to create and view interactive cheatsheets on the command-line. It was designed to help remind *nix system administrators of options for commands that they use frequently, but not frequently enough to remember.


How it works:

Quote
The next time you're forced to disarm a nuclear weapon without consulting Google, you may run:
cheat tar
You will be presented with a cheatsheet resembling:
# To extract an uncompressed archive:
tar -xvf /path/to/foo.tar

# To extract a .gz archive:
tar -xzvf /path/to/foo.tgz

# To create a .gz archive:
tar -czvf /path/to/foo.tgz /path/to/foo/

# To extract a .bz2 archive:
tar -xjvf /path/to/foo.tgz

# To create a .bz2 archive:
tar -cjvf /path/to/foo.tgz /path/to/foo/
To see what cheatsheets are availble, run cheat -l.

Note that, while cheat was designed primarily for *nix system administrators, it is agnostic as to what content it stores. If you would like to use cheat to store notes on your favorite cookie recipes, feel free.

He also lists some other similar solutions:
https://github.com/c...eat#related-projects


from NixCraft
« Last Edit: August 10, 2014, 04:04:02 PM by Edvard »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,247
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: No time for Man pages? Cheat!
« Reply #1 on: August 10, 2014, 07:35:54 PM »
ha!

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,214
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: No time for Man pages? Cheat!
« Reply #2 on: August 10, 2014, 11:56:39 PM »
Which should I run first?

  • cheat cheat
  • cheat -help

 :huh:
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,841
    • View Profile
    • Donate to Member
Re: No time for Man pages? Cheat!
« Reply #3 on: August 11, 2014, 06:39:28 PM »
Interesting find.

Haven't tried it, but liked the naming of tldr -- one of the projects listed under similar solutions.