cheat 命令行帮助 备忘单

cheat 是一个命令行工具,允许你创建和查看交互式的备忘单(cheatsheets)。它旨在帮助 *nix 系统管理员记住那些他们经常使用但不常记得的命令选项。

wget https://github.com/cheat/cheat/releases/download/4.4.0/cheat-linux-amd64.gz
gunzip cheat-linux-amd64.gz
chmod +x cheat-linux-amd64
mv cheat-linux-amd64 /usr/local/bin/cheat
cheat tar
A config file was not found. Would you like to create one now? [Y/n]:
# cheat tar
A config file was not found. Would you like to create one now? [Y/n]: y
Would you like to download the community cheatsheets? [Y/n]: y
Cloning community cheatsheets to /root/.config/cheat/cheatsheets/community.
Enumerating objects: 335, done.
Counting objects: 100% (335/335), done.
Compressing objects: 100% (310/310), done.
Total 335 (delta 43), reused 213 (delta 23), pack-reused 0
Cloning personal cheatsheets to /root/.config/cheat/cheatsheets/personal.
Created config file: /root/.config/cheat/conf.yml
Please read this file for advanced configuration information.
# cheat tar
# To extract an uncompressed archive:
tar -xvf /path/to/foo.tar

# To extract a .tar in specified directory:
tar -xvf /path/to/foo.tar -C /path/to/destination/

# To create an uncompressed archive:
tar -cvf /path/to/foo.tar /path/to/foo/

参考

  1. cheat
  2. install

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/133286190