惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
WordPress大学
WordPress大学
MyScale Blog
MyScale Blog
The Cloudflare Blog
J
Java Code Geeks
Google DeepMind News
Google DeepMind News
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler
小众软件
小众软件
量子位
月光博客
月光博客
P
Proofpoint News Feed
IT之家
IT之家
腾讯CDC
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
雷峰网
雷峰网
V
Visual Studio Blog

博客园 - blues667

Alibaba Cloud 4 (CentOS 8) 安装记录(2026.8) 职业教育教师的成长与发展(下)--赵开华-北京吉利学院副校长(教育部师德师风讲座) 职业教育教师的成长与发展(上)--赵开华-北京吉利学院副校长(教育部师德师风讲座) 腾讯元宝推荐的 YouTube 视频下载方法(2026.3) 康荣生老师(大连海事大学、华东理工大学)介绍 【程序算法题】洛谷, P1760 通天之汉诺塔, java实现。 程序题:洛谷, P5723 【深基4.例13】质数口袋 apache 2.4 设置每个Linux用户, 可以通过www访问自己的个人网站主目录, 形式为 202.118.88.66/~username 这样的形式, httpd.conf 应该进行哪些修改? 一轴徐徐展开的声纹画卷 导创: 陈建社 《学堂在线》清华郑莉老师的《Java程序设计 2025春》习题和程序设计题记录 回忆我的高中语文老师,陈光浩老师 TextPad 编译Java时,出错信息中的中文出现乱码,一种解决方法 古稀不稀,七十感怀 陈建社 2025.1.17 回忆康荣生老师 阿里云服务器所受攻击的记录(2024) vsftpd 的图形界面配置工具有哪些 当前,Linux中的内存页面调度算法 云雀妈妈和蛇大哥 【童话故事】 CentOS 9 安装 google Chrome Web 浏览器的一种简单方法(2024.9) Linux命令点滴(2024.7~) Java 学习知识点汇集(2024.6) 锁定某个Linux用户的账号
Linux 上安装 cheat 命令的过程
blues667 · 2026-03-18 · via 博客园 - blues667

环境1:腾讯云上ubuntu 24.04  虚拟主机

  • # cheat ps     //系统反馈:bash: cheat: command not found
  • #apt-get install  cheat   //系统反馈:E: Unable to locate package cheat
  • #apt update  //系统反馈:274 packages can be upgraded. Run 'apt list --upgradable' to see them.
  • #apt  apt install python3-pip   //系统反馈:python3-pip is already the newest version (24.0+dfsg-1ubuntu1.3).
  • #pip3 install cheat     //系统反馈:error: externally-managed-environment
  • #pip3 install cheat --break-system-packages    //系统反馈:Successfully installed cheat-2.5.1 docopt-0.6.2 termcolor-3.3.0
  • #cheat ps   //系统反馈:No cheatsheet found for ps
  • #git clone https://github.com/cheat/cheatsheets.git ~/.config/cheat/cheatsheets/community  //系统反馈:Receiving objects: 100% (2058/2058), 476.47 KiB | 16.43 MiB/s, done.
  • #cheat ps   //系统反馈:No cheatsheet found for ps
  • #mkdir /usr/share/cheat 
  • #cd /usr/share/cheat
  • #cp  ~/.config/cheat/cheatsheets/community/*   .
  • #cheat ps  //successful
# To list every process on the system:
ps aux

# To list a process tree:
ps axjf

# To list every process owned by foouser:
ps -aufoouser

# To list every process with a user-defined format:
ps -eo pid,user,command

# Exclude grep from your grepped output of ps.
# Add [] to the first letter. Ex: sshd -> [s]shd
ps aux | grep '[h]ttpd'

环境2:火山云上CentOS Stream 9 虚拟主机

  • #dnf install  cheat     //系统反馈:Error: Unable to find a match: cheat
  • #dnf install epel-release  //系统反馈:Nothing to do.
  • #dnf install python3-pip  //系统反馈:Nothing to do.
  • #pip3 install cheat   //系统反馈:Requirement already satisfied:
  • #cheat ps  //命令成功执行,反馈如下:
    [root@iv-ye4b22hxxcxjd1tj3rwb cjl]# cheat ps
    # To list every process on the system:
    ps aux
    
    # To list a process tree
    ps axjf
    
    # To list every process owned by foouser:
    ps -aufoouser
    
    # To list every process with a user-defined format:
    ps -eo pid,user,command
    
    # Exclude grep from your grepped output of ps.
    # Add [] to the first letter. Ex: sshd -> [s]shd
    ps aux | grep '[h]ttpd'