How will you check the complete list of logged in users either current or all those attempts which have been made to connect your machine by any user and the status of connection
Here are 6 commands which I use to view the users who have logged in recently or are currently logged in to any particular Linux machine
Here are 6 commands which I use to view the users who have logged in recently or are currently logged in to any particular Linux machine
Method 1
users: This command print the user names of users currently logged in to the current host without showing any much information about the source, login time or any other relevant detail
# users
deepak ruchi aman rahul ramandeep
Method 2
last: This command searches back through the file /var/log/wtmp (or the file designated by the -f flag) and displays a list of all users logged in (and out) since that file was created. Names of users and tty's can be given, in which case last will show only those entries matching the arguments.# last -a
deepak pts/3 Tue Oct 16 18:01 - 18:01 (00:00) 10.10.10.30
root pts/2 Tue Oct 16 17:51 still logged in 10.10.10.30
root pts/1 Tue Oct 16 14:29 - 18:03 (03:34) 10.10.10.30
root pts/3 Tue Oct 16 11:10 - 13:11 (02:00) 10.10.10.30
root pts/1 Mon Oct 15 20:30 - 13:21 (16:51) 10.10.10.30
root pts/3 Mon Oct 15 18:02 - 18:37 (00:34) 10.10.10.30
root pts/1 Mon Oct 15 15:23 - 18:34 (03:11) 10.10.10.30
root pts/1 Mon Oct 15 10:45 - 15:22 (04:36) 10.10.10.30
root pts/2 Fri Oct 12 18:34 - 15:53 (3+21:19) :2.0
root pts/1 Fri Oct 12 18:07 - 19:34 (01:27) 10.10.10.30
root pts/0 Fri Oct 12 17:57 still logged in :0.0
root tty1 Fri Oct 12 17:56 still logged in :0
reboot system boot Fri Oct 12 17:44 - 18:03 (4+00:19) 2.6.32-220.el6.i686
Method 3
secure file: This file contains the logs of all the attempts made for login to your machine with authentication reportsMethod 4
finger: If no arguments are specified, finger will print an entry for each user currently logged into the system.# finger
Login Name Tty Idle Login Time Office Office Phone
deepak pts/3 Oct 16 18:01 (10.10.10.30)
root root tty1 4d Oct 12 17:56 (:0)
root root pts/0 6:51 Oct 12 17:57 (:0.0)
root root pts/1 2:08 Oct 16 14:29 (10.10.10.30)
root root pts/2 Oct 16 17:51 (10.10.10.30)
Method 5
who: This command shows currently logged in users with time details# who -u
root tty1 2012-10-12 17:56 old 1960 (:0)
root pts/0 2012-10-12 17:57 06:51 2376 (:0.0)
root pts/1 2012-10-16 14:29 02:09 3094 (10.10.10.30)
root pts/2 2012-10-16 17:51 . 3454 (10.10.10.30)
Method 6
whoami: Print the user name associated with the current effective user ID
# whoami
root
The explanation of those 6 methods is so amazing and very interesting. Thanks for posting please do keep updating...
ReplyDeleteBest Online Software Training Institute | Unix Linux Training
IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.
DeleteIEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.
corporate training in chennai corporate training in chennai
corporate training companies in india corporate training companies in india
corporate training companies in chennai corporate training companies in chennai
I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai Project Centers in Chennai
ReplyDeleteHi there colleagues, fastidious article and fastidious arguments commented at this place, I am truly enjoying by these. outlook 365 login
The post you wrote which is full of informative content. I Like it very much. Keep on posting!!
ReplyDeleteAngularjs Training in Chennai
Angularjs course in Chennai
Selenium Training in Chennai
Software Testing Training in Chennai
Java Training in Chennai
AngularJS Training in Anna Nagar
AngularJS Training in T Nagar
This is an excellent blog. Thanks for taking the time to share this information. Waiting for more updates.
ReplyDeleteIELTS Classes in Tambaram
IELTS Training in Tambaram
IELTS Coaching Center in Chennai Tambaram
IELTS Coaching in Chennai Tambaram
IELTS Classes in Velachery
IELTS Coaching Center in Adampakkam
IELTS Coaching in Chennai Velachery
Nice article I was really impressed by seeing this blog, it was very interesting and it is very useful for me.
ReplyDeleteCCNA Course in Chennai
CCNA Training in Chennai
RPA Training in Chennai
Ethical Hacking Course in Chennai
Blue Prism Training in Chennai
CCNA Classes in Tambaram
CCNA Training in OMR
CCNA Training in Velachery
I was searching an excellent blog in this topic, thanks admin for the info on latest technology.
ReplyDeleteHadoop Training in Chennai
Android Training in Chennai
Selenium Training in Chennai
Digital Marketing Course in Chennai
JAVA Training in Chennai
German Classes in chennai
PHP Training in Chennai
PHP Training Center in Chennai
It was really an interesting blog, Thank you for providing unknown facts.
ReplyDeleteAviation Academy in Chennai
Air hostess training in Chennai
Airport management courses in Chennai
Ground staff training in Chennai
Medical coding training in Chennai
Fashion designing courses in Chennai
Interior design courses in Chennai
Very Clear Explanation. Thank you to share this
ReplyDeleteRegards,
PHP Training Institute in Chennai
The Post which you wrote is full of informative and vital blogs. I like it very much. Thank you for your work.
ReplyDeleteHadoop Training in Chennai
Hadoop Course in Chennai
Selenium Training in Chennai
Software Testing Training in Chennai
Python Training in Chennai
Hadoop Training in Tambaram
Hadoop Training in Porur
The way you presented the blog is really good... Thaks for sharing with us...
ReplyDeletesoftware testing course in coimbatore with placement
Software Testing Course in Coimbatore
Java Course in Bangalore
Devops Training in Bangalore
Digital Marketing Courses in Bangalore
German Language Course in Madurai
Cloud Computing Courses in Coimbatore
Embedded course in Coimbatore
Its a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way. T hank you so much.
ReplyDeleteSpoken English Class in Coimbatore
Best Spoken English Classes in Coimbatore
Spoken English in Coimbatore
IELTS Coaching in Coimbatore
IELTS Coaching Center in Coimbatore
German Classes in Coimbatore
German Courses in Coimbatore
You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. And I am waiting for your next post keep on updating these kinds of knowledgeable things
ReplyDeleteSpoken English in Chennai
Best Spoken English Class in Chennai
Spoken English in Chennai
Best Spoken English Class in Chennai
best spoken english classes in bangalore
spoken english in bangalore
You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. And I am waiting for your next post keep on updating these kinds of knowledgeable things
ReplyDeletebest spoken english institute in coimbatore
spoken english institute in coimbatore
spoken english course in coimbatore
best spoken english class in madurai
best spoken english center in madurai
Best Spoken English Classes in Chennai
Spoken English Classes in Chennai
ReplyDeleteIts really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing the information .Hope more posts from you .I also want to share about best linux online training in recent times also and linux training
I'm very pleased to uncover this web site. I want to to thank you for your time due to this fantastic read!! I definitely loved every little bit of tech it and i also have you bookmarked to look at new information in your site.
ReplyDeleteI think this is the best article today. Thanks for taking your own time to discuss this topic.
ReplyDeleteXamarin Training in Chennai
Best Xamarin Course
TOEFL Training in Chennai
french courses in chennai
spoken english course in chennai
pearson vue
ielts training centre in chennai
Blockchain Training in Chennai
spanish institute in chennai
content writing training in chennai
Xamarin Training in Velachery
Xamarin Training in Tambaram
Check Latest Updates about your Universities Results. Timetable-Result.com This Site helps to clear your all query.
ReplyDeleteBA Final Year Exam result 2020
BCom 3rd semester Exam result 2020
If you might be purchasing your house, our payment calculator allows you to test down payment and amortization scenarios, and compare variable and fixed mortgage rates. mortgage payment calculator canada Nicole is a home financing broker who works with you, whether you might be purchasing, renovating, looking to be free from debt, or investing. mortgage payment calculator canada
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteMua vé máy bay tại Aivivu, tham khảo
ReplyDeletedat ve may bay tu han quoc ve viet nam
vé máy bay vinh - sài gòn
vé máy bay đi hà nội bao nhiêu
vé máy bay đi đà lạt giá rẻ
mua vé máy bay từ mỹ về việt nam hãng eva
taxi sân bay nội bài
Very Informative post. Thank you for sharing this valuable information with us.
ReplyDeleteThirukkural pdf download
Sai Satcharitra in malayalam pdf
Sai Satcharitra in marathi pdf
Sai Satcharitra in kannada pdf
Sai Satcharitra in bengali pdf
Sai Satcharitra in gujarati pdf
CEA Aviation is seeing an incredible new turn of events in India, with unparalleled student and instructor enrollments, to the point that the Top 10 flight school in delhi is now offering DGCA Ground Classes in India. Within the confines of our sector, CEA Aviation has established links with a collection of air transportation associations to ensure that students approach perplexing workplaces and receive work aid with requests for astounding general information.
ReplyDeleteHitech spread out its name in the market in Jan 2004. It serves 18+ years in teaching and completing goals of students all over, and thus, it transforms into the student's most memorable choice with time. Today, every student dreams of acquiring an undeniable level versatile fixing course from hitech and becoming self-allowed to achieve their goals through day-to-day existence. Hitech gives different specific fixing courses, for instance, compact fixing, PC fixing, OCA fixing, EMMC fixing, LCD fixing, and PC gear machines fixing. Call here for additional information 9212411411.
ReplyDeleteVisit Here :- Mobile Repairing Course In Delhi
شيخ روحاني
ReplyDeleteمعالج روحاني
رقم ساحر حقيقي
رقم ساحر سعودي
رقم ساحر سعودي
hobbyhuren berlin
wikimedia.cc
جلب الحبيب
جلب الحبيب
جلب الحبيب