Code Yarns ‍👨‍💻
Tech BlogPersonal Blog


📅 2016-Mar-10 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ nvidia-smi, watch ⬩ 📚 Archive

The greatest power of Unix-like systems comes from its myriad tools that are built for composability. Watch is one such excellent tool that can be used to periodically monitor by repeatedly running a given program. Some programs, like top, have in-built capability to rewrite the console and show progress with new data. With watch, you can bring to bear this ability on any tool that writes to the console!

$ sudo apt install procps
$ watch -n 0.1 nvidia-smi

Tried with: ProcPs 3.3.9 and Ubuntu 14.04

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email