Comments on Linux last Command Tutorial for Beginners (8 Examples)

If you are new to system administration, there'll be times when you'll have to monitor or access login related information. There are multiple tools that you'll likely use for this purpose, with one of them being last.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Rohit Sharma at: 2019-02-02 06:03:33

i tried to run the command

->last -s yesterday -t today

in my Centos7 machine but it shows me the error as Invalid arguments.

 

By: xattack at: 2020-06-19 16:42:50

thats because you last command is too old , may be from 2004 , in Ubintu 18.04 its from 2013 an it already includes the options mentioned in the article . Or another option you ca do , I already did it , is to compile one of the newest packaget from util-linux  from 

https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.35/

 

and you are gonna have all the options the article mention for the last command  

cheers 

By: SleepyCatzzz at: 2021-04-13 12:32:40

How to control how far back this goes? Mine seems to keep only the last week or so