Linux_cheat命令安装和使用
1、安装python
yum -y install python
2、安装epel源、安装pip
yum install epel-release -y
yum install python-pip -y
3、安装git
yum -y install git
4、安装Python依赖的文件
pip install docopt pygments
5、从github克隆项目到本地
cd /usr/local/src
git clone https://github.com/chrisallenlane/cheat.git
6、切换到cheat目录,安装cheat
cd cheat
python setup.py install
7、查看版本号
cheat -v
![](https://images2015.cnblogs.com/blog/1038089/201611/1038089-20161114103342935-745789152.png)
8、查看所有可用的cheat命令
cheat -l
![](https://images2015.cnblogs.com/blog/1038089/201611/1038089-20161114103432638-561276617.png)
9、使用cheat
cheat tar
![](https://images2015.cnblogs.com/blog/1038089/201611/1038089-20161114103506404-806434168.png)