Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

want to know who is logged on to the machine a long time. Using \"last\" and oth

ID: 3761432 • Letter: W

Question

want to know who is logged on to the machine a long time. Using "last" and others provide me with one command line that shows the time logged in, from greatest to least, a screen at a time. Be careful the "still logged in people do not count. It's 0K if people logged in more than a day are not quite right; for example here's output on oki recently 12:06 (3+23:58) 13 163 22.99 St Sun NOV 2 12 08 pts/19 h15 153 23 98 st Sun Nov 16:51 (21:08) 2 19 42 pts/5 h218 153. 23 98. s Tue Nov 4 23:58 20:23 (20:25) ip98-168-244-97. Wed Novum 16:26 12:11 (19:44) h218,163. 23. 98. s Mon Nov 3 14:49 08:00 (17:11) 48 ip72-196-11-222. Wed Now 18:18 07:41 (13:22) pts/46 01:44 (1+10:07) 137 ABE 181.5 ue Nov 15:37 4:34 (10:44) ip98-161-32-4, om Sat Nov 1 18:50 34 17:45 (1 02:11) cpe-76-85-175-19 Sun Nov 2 15 inatten 36 23:19 (1 01:14) ip1 74-74-109-9 22 05 IL aashakan, pts/24 pki 174e-990. ist. Mon Nay 3 11:44 12:55 (1+01:11) 71-215-37-19. oma Tue Nov 19:15 05:27 (10:11) 34 er pts /70 ip98-168-213-234 Mon Nov 3 21:10 07:21 (10:11) Mattmann. pts/37 09:51 (10:01) p98-161-31-46.0 Mon Nov 23 49 pts/4 0: 26 (09:40) 08 167 p 58.250 Sat Nov 1 14 46 Modify the previous command line so that we know who the real hogs" are. Hogs" are defined as people logged infor more then 24 hours. The output should look like this: h13, 163 23.98, st Sun Nov 2 12:08 12:06 HOG ivtrecht pts/19 h15, 163 23.98, st Sun Nov 16:51 (21:08) 2 19 42 pts/5 h218, 163, 2 3 98. s Tue Nov 4 23:58 20:23 (20:25) p98-168-244-97. Wed 16:26 12:11 (19:44) h218, 163, 23. 98. S Mon Nov 3 14:49 08:00 (17:11) iggarlsg pts/8 96-11-222. Wed Nov .5 18:18 07:41 (13:22) ip72-1 pts 46 117 48.181.57 e Nov 4 15 37 01 44 HOG Ditchell pts/1 4:34 (10:44) p98-161-32-4. Om Sat Nov 1 18:50 45 HOG cpe-76-85-175-19 sun Nov 2 15:34 17 ip174-74-109-97. Tue NOVA 4 22:05 23 19 HOG pts/24 pki 174e-990. ist. Mon NowANA3 11 44 12:55 HOG 7 (10:11) 71-215 37-19 oma. Tlue NOW 19:15 alter pts/7 ip98-168-213-234 Mon Nov 3 21:10 07:21 (10:11) pts/37 ip98-161-31-46.0 Mon Nov 3 23:49 09:51 (10:01) Sat Nov 1 14:46 00:26 pts/4 (09:40 108, 167, 250

Explanation / Answer

hello,

Use the following command in a Command Prompt:

It will be next to Last Logon.

and

You can also use "quser" command to see the login time.