LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2004, 11:23 PM   #1
Radical Edward
LQ Newbie
 
Registered: Oct 2004
Posts: 11

Rep: Reputation: 0
Login times


Is there a simple way to check the total login time of a user? (i.e. How long he has been logged on in total between all the times he has been logged on)
 
Old 12-01-2004, 11:36 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The last command should help you. I'm pretty sure there's a util that will total up all the login times, but I'm tired and my brain is blanking . Worse comes to worse, you could hack up a bit of awk or perl to total up login times.
 
Old 12-01-2004, 11:39 PM   #3
Radical Edward
LQ Newbie
 
Registered: Oct 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks

Yeah, I was going to do that, but it's so damn complicated with the fact that if someone is still logged on it wouldn't show up right. Either way, I figured it out. The command is ac
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-login at specific times Vorik Linux - Software 6 12-11-2007 02:04 AM
Login times out while writing post lesleyb LQ Suggestions & Feedback 2 10-20-2004 06:36 PM
Restricting user login times SuSE 9.1 Prof gekko9 Linux - Security 3 09-26-2004 11:54 AM
Account Allowed Login Times? c0uchm0nster Linux - Security 3 08-18-2004 05:32 AM
Need to restrict login times for vsftp thebrit123 Linux - Software 0 06-09-2003 10:27 AM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration