Transcript (final screen)
demo:MyTop$ ./my_top demo:MyTop$ ls *.c | wc -l 22 demo:MyTop$
MyTop
About this project
Dec 2024 – Dec 2024 · Author · solo · last push 2026-02-09
A clone of the Linux top command in C and ncurses: live CPU, memory, swap and per-process usage read from /proc.
MyTop is my own version of top, the Linux command that shows what your computer is busy with: how long it has been running, how loaded it is, how much memory is used, and every running program with its share of the processor, refreshed live.
How it works
Linux exposes all of this as small text files that the kernel writes on the fly. MyTop reads them, sorts the programs by how much processor they use, and draws the table in the terminal. A bonus version adds top’s options to show one user’s programs, change the refresh rate or stop after a few updates.