Using cheat tools to Master System command usage in Linux

Source: Internet
Author: User
Tags git clone

The Cheat tool is a great tool for Linux system administrators who can help you get familiar with the use of SYSTEM commands in Linux in a simple and quick manner, such as:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/49/15/wKiom1QOoxeAQFT3AADpogzA6KI190.jpg "title=" QQ picture 20140909144555.png "alt=" Wkiom1qooxeaqft3aadpogza6ki190.jpg "/>

The installation of the cheat is simple:

Cheat has two dependent tools Python and Pip, so you need to install Python and pip before installing cheat.

# yum Install python# yum install Python-pip

Download cheat via git:

# apt-get Install git

Then install the Python dependency:

# pip Install docopt pygments

To clone cheat from the Git repository:

# git clone https://github.com/chrisallenlane/cheat.git

Go to cheat directory and run setup.py

# cd cheat# python setup.py install

Installation Complete OK, can view cheat version

# cheat-vcheat 2.1.0


Some other configurations of cheat:

need to be ~/.BASHRC Configuring a default text editor

# Export EDITOR =/usr/bin/vi

This text editor can be set according to your preferences, can be set other, such as Nano


If you need cheat auto-completion, you can go to git to copy cheat.bash this script:

# wget https://github.com/chrisallenlane/cheat/raw/master/cheat/autocompletion/cheat.bash^c# MV cheat.bash/etc/ bash_completion.d/

Cheat can also customize the command's help file according to their own needs, the custom directory by default in the ~/.cheat/directory, we first look at the cheat of the command Help file directory:

# cheat-d/root/.cheat/usr/lib/python2.7/site-packages/cheat/cheatsheets# Cp/usr/lib/python2.7/site-packages/ cheat/cheatsheets/*/root/.cheat/

We can copy all the files under/usr/lib/python2.7/site-packages/cheat/cheatsheets to/root/.cheat, and you can build your own other commands to help memo files according to your needs.

In this way, the cheat tool is installed, and you can make good use of it if you do not remember how to use it after you encounter the command.

Using cheat tools to Master System command usage in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.