Well this is a fun statistic, it seems Linux has become a fair bit more popular than macOS on the Stack Overflow Developer Survey for 2022.
Firstly for the 2021 data, professional Linux use was at 25.17% and overall Linux use was 25.32%. At the time macOS was at 30.04% for professionals and 25.19% overall. This was from over 80,000 responses.
This year's survey had over 70,000 responses, and the results for 2022 show that 40.23% use Linux for personal use while 39.89% use it as a professional. Personal use for macOS was at 31.07% and professional use at 32.97%.
So it's worth pointing out that while yes Linux use has risen quite a bit above macOS, they also had seemingly less responses on the latest survey. Still interesting enough to highlight though especially with the total responses being a pretty great sample size overall. A fun point here as well though is that the survey also noted that 15% of the respondents use Windows Subsystem for Linux (WSL) personally and 14.34% professionally.
Naturally Windows was on top both years but the gap is getting smaller overall for developers, meanwhile poor old BSD was noted to only have 1.47% personal use and 1.03% professional use.