Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

who command

nish_1
Frequent Advisor

who command

Hi,

'who' command gives the active terminals.Is there any option to see the terminals which are closed on a particular day?for example i want to see all the ttys opened on March 17th.
2 REPLIES
Goran Koruga
Honored Contributor

Re: who command

Hello.

`last' command allows you to access old utmp (wtmp) records.

Regards,
Goran
Kapil Jha
Honored Contributor

Re: who command

output is like
]# last
root pts/2 1-241.priv21 Thu Mar 18 17:17 still logged in
root pts/1 1-213.priv21 Thu Mar 18 15:23 still logged in
root pts/2 1-213.priv21 Thu Mar 18 12:11 - 14:32 (02:20)
root pts/1 1-213.priv21 Thu Mar 18 11:14 - 13:30 (02:15)
root pts/4 XXXX Wed Mar 17 17:54 - 17:54 (00:00)


It has various info.
BR,
Kapil+
I am in this small bowl, I wane see the real world......