LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-26-2004, 10:09 PM   #1
redss
Member
 
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.

thanks!
 
Old 04-26-2004, 10:23 PM   #2
AutOPSY
Member
 
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.
 
  


Reply


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 09:46 AM.

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