Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-26-2004, 10:09 PM   #1
Registered: Jun 2003
Posts: 165

Rep: Reputation: 16
How to find out idle time at console?

I like how the "w" command tells how many minutes a user has been idle. But it only seems to work for users that are logged in, not the console user.

Is there a way to get the idle time of the console user? I want to remotely log in via telnet, and see if my roomate is actively using my computer, and if not, how long since he touched the keyboard.

Old 04-26-2004, 10:23 PM   #2
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
'last' command will tell you the last time a user has laoogged in, including root.
and 'w' does show the console user even, root. its listed as tty1 not console.

you may have to use more also, example:
last | more

use return to scroll.
the | is a pipe.

Last edited by AutOPSY; 04-26-2004 at 10:25 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How run script after certain idle time? nio Linux - Software 2 07-09-2005 02:05 PM
IDLE time for DSL metallica1973 Linux - Networking 0 02-22-2005 11:06 AM
Gentoo, X locks up after long idle time ksas025 Linux - Hardware 5 11-10-2004 07:11 AM
Automatic logout because of Idle time palanisaravanan Linux - General 4 10-17-2003 10:51 AM
X likes to crash if I leave it idle for some time sufx Linux - General 3 10-14-2003 04:47 PM

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration