On Sat, 2022-07-09 at 02:17 +0000, Meta4 wrote:
This seems to grap all active users: $ ps -a -o ruser |sort -u |egrep -v '^RUSER|^root' |fmt altalada andinus ang anshupat ariel asp balou barwar deejoe fro games gamliel gbmor grizzly kneezle meta4 meuk nix optimant pcaetano phoebos r1k rdh rjc sarmonsi yeti
That depents on the definition of 'active'.
Because of 'mosh', this will not only list the users really being active in person at that moment. 'mosh' keeps connections alive and ready for a reconnect. I basically never logout, just my not-eBook gets suspended and on wake-up, I have all my shells back.
Additionally some users might have ircbots/games/cronjobs running, so may appear in the 'ps' output while not being logged in at all.
Looking at 'ps' output to see which activities on a tilde you might have overlooked so far sure is an idea, but seeing a user's name in 'ps' output is no reliable way to find out who really is active at that moment.