Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 6433  / 2 Years ago, sat, march 5, 2022, 10:53:13

I want to know if can safely shutdown my computer at home, by testing to see if my flatmate is using it. Therefore i use the command "w" in terminal. However the Idle time for tty seems strange (note I don't know much about linux or what tty means).



For example, a test of "w" command on my work machine shows that the idle time of my session is 14days? But i am using it now... this is something I don't understand.



w
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
me tty7 :0 09Apr13 14days 1:41m 3.07s gnome-session --session=ubuntu

More From » 12.10

 Answers
1

The idle time is supposed to tell how long it has been since the user typed any input on that terminal. For Xwindows sessions, it is broken since Xwindows never reads input from a terminal, but instead gathers input directly from your mouse and keyboard, so the terminal never gets its timestamp updated since it is never read from.


[#31680] Monday, March 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rillrage

Total Points: 122
Total Questions: 120
Total Answers: 103

Location: Tokelau
Member since Thu, Aug 26, 2021
3 Years ago
rillrage questions
;