Home
Sign Up
Sign In
Distributions
›
Ubuntu
›
Fedora
›
CentOS
中文资源站
›
网易开源镜像站
V2EX
›
Linux
自己如何实现类似 Linux 下 top 命令显示效果
bandian
·
Oct 2, 2020
· 3601 views
This topic created in 2229 days ago, the information mentioned may be changed or developed.
想给服务写一个进程信息的终端查看器,想实现的效果就类似于 top 命令的输出,可以实时监控的那种状态,不知道这种效果有什么比较好的实现方式。
top
命令
效果
实现
3 replies
•
2020-10-03 20:16:31 +08:00
omph
Oct 2, 2020
1
linux 是开源的,看 top 的代码就行吧
whenov
Oct 3, 2020 via iPhone
2
ncurses
Hoshizora
Oct 3, 2020 via iPhone
3
有个纯 bash shell 实现的类似 top 命令工具,github 刷有
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4813 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 48ms ·
UTC 02:53
·
PVG 10:53
·
LAX 18:53
·
JFK 21:53
♥ Do have faith in what you're doing.
❯