Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-07-2010, 10:03 PM   #1
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.

# 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
Senior Member
Registered: Aug 2009
Posts: 3,790

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

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

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


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 27 11-29-2017 07:09 AM
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:28 AM.

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