By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,767 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,767 IT Pros & Developers. It's quick & easy.

Shell scripts

P: 1
Hey I was wondering if anyone knows how to display information about user logins in a shell script. For example is there code to display the most often logged in users or other things like that?

I know the last command gives about user logins but I don't know if I can manipulate the data like I need to.
Oct 11 '07 #1
Share this Question
Share on Google+
2 Replies

Motoma
Expert 2.5K+
P: 3,237
I think there are access logs in your /var/log directory. There is no database keeping track of these, rather, you will need to grep or otherwise parse the files yourself to get the information you are looking for.
Oct 11 '07 #2

P: 1
Hey I was wondering if anyone knows how to display information about user logins in a shell script. For example is there code to display the most often logged in users or other things like that?

I know the last command gives about user logins but I don't know if I can manipulate the data like I need to.
hey yeah ive got an answer for ur question its here
who displays the login details of logged in users
who am i displays the login details of current user...
i would be happy if u could give me brief idea of forks,sockets.messages.
waiting for ur soon reply
Oct 18 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.