LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-07-2010, 10:03 PM   #1
F4U57
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Rep: Reputation: 0
Bash command to list users logged in at 5pm


Hi, I need to figure out a bash command to list all users logged in at or after 5pm - 5pm being the specifier in the command.

The
Code:
# who
command seems to be the easiest way to display users but it specifies all users log times.

I've also fiddled with the lastlog command to no avail.

Any ideas?
 
Old 06-07-2010, 11:30 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Maybe 'last -t YYYYMMDDHHMMSS' .. ?

hth
 
Old 06-07-2010, 11:37 PM   #3
F4U57
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks, I'll give ti a try
 
  


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
What is the command to list users? neo_in_matrix Linux - Newbie 24 02-12-2014 11:43 PM
List users logged in to remote system jantman Linux - Software 3 12-11-2006 01:01 AM
How do I list all users (even those not logged in) steved Linux - Newbie 2 09-29-2005 05:45 PM
List all users, command amer_58 Linux - Newbie 6 03-25-2005 07:07 AM
how can i see list of logged on users? doublefailure Linux - General 6 09-10-2002 09:11 PM


All times are GMT -5. The time now is 02:31 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