Operating System - HP-UX
1834650 Members
2069 Online
110069 Solutions
New Discussion

Re: i need to know how long a user has been logged on the system...

 
Bob_16
Frequent Advisor

i need to know how long a user has been logged on the system...

what command will tell me how long a user has been logged on the system? it doesn't matter if they are doing anything, just logged in and just sitting at a prompt $.

thanks
3 REPLIES 3
Steffi Jones_1
Esteemed Contributor

Re: i need to know how long a user has been logged on the system...

Hello,

probably the easiest way is to run:

who -a

Take care, Steffi Jones
Steffi Jones_1
Esteemed Contributor

Re: i need to know how long a user has been logged on the system...

Hi,

I just thought about another option for you.

lastb

That will show you too when a user logged in.
Whatever works best for you :-)

Steffi Jones
Bruce Regittko_1
Esteemed Contributor

Re: i need to know how long a user has been logged on the system...

Hi,

Steffi's ideas are great but she probably meant to say last and not lastb. The lastb command shows "bad" logins while last shows all previous and current logins.

--Bruce
www.stratech.com/training