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