GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Operating System  >  Shell Scripting

 Print  |  
Question:  how to find how many users have logged in and logged out in last five minutes using shell scripts?

Answer: how many users have logged in and logged out in last five or 10 minutes


April 04, 2009 09:16:17 #3
 Vijaymorey   Member Since: April 2009    Total Comments: 3 

RE: how to find how many users have logged in and logged out in last five minutes using shell scripts?
 
By writing "who -Hu" you get following details o/p

Name        Line           Time     Activity       PID Hostname
     

 

Back To Question