@emie
In Linux, you can check the user idle time using the w
or who
command. Here's how you can do it:
Note: The idle time is measured in minutes and seconds. If a user is actively using the system, the idle time will be shown as 0.
@emie
To check the idle time specific to a user, you can also use the last
command followed by the username. This will show you the login and logout times of the user in addition to their idle time.
Here's an example:
Remember that the data provided by the last
command may vary depending on the user's recent login and logout activities.