You Asked: How Do I See Active Sessions in Linux?
Contents

How do I find inactive sessions in Unix?

You can easily identify the inactive or idle or unresponsive hung ssh session’s with the help of ‘w command’. Once you know the session information using the w command, use the pstree command to find the process id (PID) of the idle ssh session.

How can I see all users logged in Linux?

Linux Command To List Current Logged In Users

  1. w command – Shows information about the users currently on the machine, and their processes.
  2. who command – Display information about users who are currently logged in.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest