I try to spend 30 minutes a day or so responding to comment threads on LinkedIn on trending subjects. It's a grind, but again, some people play Animal Crossing, some people play LinkedIn hahaha. I got this tip from my friend who grew his Instagram page the same way. When I'm in the writing mood I'll bang out 5+ LinkedIn posts on a Sunday afternoon and use hootsuite to release one a week.
LinkedIn you reallllly gotta focus on the individual conversations and not chase views though. The goal there isn't to get a million people to see something, the goal is to appear in a senior manager at a FAANG company's feed and start a conversation. This happened to me last year and ended up me being able to skip the phone screen for a FAANG interview (I can speak in front of 100 people but I'm still terribly nervous for whiteboard tech interviews). I didn't end up getting the job because I failed the tech screen but that's an example of an opportunity that appeared from nowhere by just posting value adding content.