Linux / UNIX: See If Particular Users Are Logged Into Server
You can use the who command to see if particular users are logged into the server. The who command will display information about users who are currently logged into the system, including their username, terminal, and the time they logged in. For example:
$ who
nuser1 tty1 2021-02-11 08:30
nuser2 tty2 2021-02-11 09:45You can also use the grep command to filter the output of the who command and display information only for a specific user. For example:
$ who | grep user1
nuser1 tty1 2021-02-11 08:30This will display information only for the user user1.
