1
Use `nproc` and not grep /proc/cpuinfo
There’s something really quite subtle about how the nproc utility from GNU coreutils works. If you look at the man page, it’s even the very first sentence: Print the number of processin…
The home page of Stewart Smith styled in that unforgettable "I am a systems programmer that can't be bothered making a fancy-dancing web site" style.
Visit flamingspork.com → On Hacker News Nov 2020 – Nov 2020
There’s something really quite subtle about how the nproc utility from GNU coreutils works. If you look at the man page, it’s even the very first sentence: Print the number of processin…