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
Post #25255
13