LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   When a user last logged in (https://www.linuxquestions.org/questions/linux-general-1/when-a-user-last-logged-in-233371/)

turbo_acura 09-21-2004 10:34 AM

When a user last logged in
 
Hello!

I want this Redhat Linux box to indicate the last time the user logged in. With Solaris it worked with 'last -n 2 $LOGNAME| tail -1'. I'm not sure what the equivalent would be fore Linux.

Cheers,
Nigel

XavierP 09-21-2004 12:02 PM

Open a console and type in man last - that will give you all the uses of the command.


All times are GMT -5. The time now is 02:20 AM.