Skip to content

qinshulei/ubuntu-cheat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ubuntu-cheat

本项目用来记录我自定义的cheat

cheat

cheat就是一个命令,一般用来显示一个命令的常用方法。毕竟看man有时候太麻烦。

以下为cheat的项目地址: https://github.com/chrisallenlane/cheat

例子

记不起后台运行的命令,通过cheat快速查询命令实例

$  cheat jobs
# list all jobs
jobs

# run backgroud
command &

# let a running command in background
Ctrl+Z
bg

# let bg don't relate to the shell
disown %1

# run a command in backgroud and don't relate to the shell
nohup command &

cheat的安装

# install pip

# 安装 pip
sudo apt-get install python-pip

# First install the required python dependencies with:
sudo pip install docopt pygments

# Then install cheat by pip
sudo pip install cheat

ubuntu-cheat 安装

本项目 ubuntu-cheat 其实可以理解为我的cheat命令的配置文件。因此 clone 到 ${HOME}/.cheat目录下即可。

git clone https://coding.net/qinshulei/ubuntu-cheat.git ~/.cheat

ubuntu-cheat 的内容

  • 会慢慢收集,自己工作中会用到,但容易遗忘的命令或知识点。
  • 尽量记录一些足够通用的命令
  • cheat 分两种:一种是命令,全小写命名。一种是知识点,以驼峰式命名。
  • 每个命令的cheat,尽量不超过终端全屏下的一个屏幕。知识点的cheat原则上不限长度,但每个主题都尽量简短,方便ack或者grep查找。
  • 欢迎大家的补充

About

my cheatsheet repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages