LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-20-2017, 03:13 AM   #1
charan1000
LQ Newbie
 
Registered: Nov 2017
Posts: 12

Rep: Reputation: Disabled
regarding last -t command


last -t yyyymmddhhmmss

as per man page, it should show the users login list for particular time & date

but when i enter above command, its showing all logins irrespective of date & time.its not showing on particular date & date

please let me know how to use this command to get the login list for particular time and date.

thanks in advance.
 
Old 11-20-2017, 04:29 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
What distribution are you using?
What VERSION are you using? (possibly the version of 'last' might matter)

Did you read the man page? On MY man page for last it says that the '-t' option gives you the last report AS OF that date and time, not limited to that date and time.

If you want to limit output to the logons for a single user, grep is your friend.
 
1 members found this post helpful.
Old 11-20-2017, 07:10 AM   #3
giis
Member
 
Registered: Nov 2013
Location: Third Rock from Moon
Distribution: RPM/DEB based and LFS
Posts: 73

Rep: Reputation: Disabled
Quote:
Originally Posted by charan1000 View Post
last -t yyyymmddhhmmss

..
but when i enter above command.

You mean to say you typed "last -t yyyymmddhhmmss" as your command?
 
Old 11-20-2017, 11:11 AM   #4
charan1000
LQ Newbie
 
Registered: Nov 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
thank you
 
  


Reply



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
[SOLVED] [SOLVED] bash script: can echo command, command works if I type, but command doesn't work in script ... why? hopeless_n00b Linux - Newbie 10 07-12-2018 05:57 AM
ILO: Using Virtual Media with the Command-Line Interface command not working on ILO3 LittleMaster Linux - Server 0 10-31-2017 11:44 AM
Command/Script required to send an email alert in case command will not respond rajaniyer123 Linux - General 1 05-19-2012 01:12 PM
Executing shell command from JSP file with command line arg from URL orcusomega Programming 2 01-13-2012 03:38 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:46 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
Open Source Consulting | Domain Registration