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......