TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25255 13
I built a minimalist, lightweight Linux Task Manager in modern C++ (reading directly from /proc) — Looking for architecture feedback!

Hey everyone,

I wanted to dive deeper into Linux internals and system-level programming, so I built **LTM (Linux Task Manager)**. It’s a minimalist CLI tool written in C++17 that interacts directly with the kernel by parsing the `/proc` filesystem.

**Key Features:**

* **Ultra-lightweight:** Uses standard `dirent.h` for bare-metal file navigation and maximum memory efficiency.
* **Zero external dependencies:** Pure Modern C++ code.
* **Clean Architecture:** Properly structured with separated `src/` and `include/` layouts.

**What's next on the Roadmap:**

* Refactoring the file parsing logic to use `std::getline` for safer, dynamic text tokenization.
* Adding real-time CPU usage calculation per process.
* Implementing a sorting algorithm (via `std::vector`) to sort processes by highest RAM usage.
* Building a GUI frontend using `QtWidgets`.

The codebase is fully open-source, clean, and documented. I would love to get your feedback on the architecture, code quality, or any low-level optimizations you suggest!

**Check it out here:**[https://github.com/sudoRebel/linux-task-manager](https://github.com/sudoRebel/linux-task-manager)

If you like the approach, feel free to drop a ⭐ to support the project! Happy coding!

https://redd.it/1tl93xp
@r_cpp
GitHub GitHub - sudoRebel/linux-task-manager: Building a system monitoring tool from scratch to explore and manage Linux processes. Building a system monitoring tool from scratch to explore and manage Linux processes. - sudoRebel/linux-task-manager
More from @r_cpp
  1. Sep 29, 2026Boost.Graph 1.95 will be C++17 Dear Boost.Graph community, In two release cycles (Boost re…
  2. Sep 26, 2026Token Sequence Injection & Modern Macros: The Most Game-Changing Compile-Time Feature in C…
  3. Sep 25, 2026myStringStream.str("") Considered Harmful Under C++20 I was recently looking at some (rath…
  4. Sep 20, 2026A clever branch free optimization I'm the developer of memlz which is an extremely fast co…
  5. Sep 15, 2026Inside Boost.PolyCollection https://bannalia.blogspot.com/2026/09/inside-boostpolycollecti…
  6. Sep 11, 2026C++26: Standard Library Hardening Experiments https://www.cppstories.com/2026/hardening-ex…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →