Question: how to check number of users logged in linux?
Answer: Get the running processes of logged-in user using w. w command is used to show logged-in user names and what they are doing. ... 
Get the user name and process of logged in user using who and users command. ... 
Get the username you are currently logged in using whoami. ... 
Get the user login history at any time.