
两个超强的Linux帮助命令
两个超强的Linux帮助命令
cheat
安装
Centos7.6上安装
一. ##Centos上安装cheat命令
1.安装python
yum -y install python
2.安装pip
yum -y install python-pip
[[如果失败的话先执行]]
yum -y install epel-release
[[然后执行]]
yum -y install python-pip
3.安装git
yum -y install git
4.安装Python依赖的文件
pip install docopt pygments
5.从github克隆项目到本地、用不到
git clone https://github.com/chrisallenlane/cheat.git
6.安装cheat
sudo pip install cheat
7.查看版本号
cheat -v
8.使用
cheat {需要查询用法的命令}
Ubunte20.04上安装
1.安装python;
sudo apt-get install python
2.安装pip;
sudo apt-get install python-pip
[[如果失败的话先执行]]
sudo apt-get install epel-release
[[然后执行]]
sudo apt-get install python-pip
3.安装git
sudo apt-get install git
4.安装Python依赖的文件
pip install docopt pygments
5.从github克隆项目到本地、用不到
git clone https://github.com/chrisallenlane/cheat.git
6.安装cheat
sudo pip install cheat
7.查看版本号
cheat -v
8.试一下效果吧,
cheat {需要查询用法的命令}
常用配置
如果使用的是bash,则配置文件为.bashc
如果使用的是zsh,则配置文件为.zshrc
export EDITOR = /usr/bin/vim # 默认编辑器
export CHEATCOLOR=true # 语法高亮
tldr
安装
Centos上安装
1.安装npm
sudo apt-get install npm
2.安装nodejs-legacy
sudo apt-get install nodejs-legacy
3.安装n模块更新
sudo npm install n -g
4.安装最新版的node,视情况执行
sudo n latest
5.安装tldr
sudo npm install -g tldr
Ubunte20.04上安装
1.安装python;
sudo apt-get install python
2.安装pip;
sudo apt-get install python-pip
[[如果失败的话先执行]]
sudo apt-get install epel-release
[[然后执行]]
sudo apt-get install python-pip
3.安装git
sudo apt-get install git
4.安装Python依赖的文件
pip install docopt pygments
5.从github克隆项目到本地,用不到
git clone https://github.com/tldr-pages/tldr
6.安装cheat
sudo pip install tldr
7.查看版本号
tldr -v
8.试一下效果吧,
tldr {需要查询用法的命令}
- 感谢你赐予我前进的力量
赞赏者名单
因为你们的支持让我意识到写文章的价值🙏
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 咸鱼博客
评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果