last
De bricosoft
last est une commande unix affichant la liste des derniers utilisateurs connectés.
usage
$ last
alfred pts/0 pc12 Fri Feb 8 15:19 still logged in alice pts/4 pc666 Fri Feb 8 15:11 still logged in alice pts/6 pc666 Fri Feb 8 15:09 still logged in alice pts/7 pc666 Fri Feb 8 15:06 - 15:07 (00:00) bob pts/6 pc8 Fri Feb 8 15:05 - 15:07 (00:01) bob pts/4 pc8 Fri Feb 8 15:00 - 15:11 (00:11)
Pour en voir plus rajoutez l'option -n :
$ last -n 100
tops des utilisateurs
tops utilisateurs en nombre de connexions :
$ last | grep -vE "(^$|wtmp)"|awk '{print $1;}'|sort -n|uniq -c
27 alice
24 root
10 bob
les derniers reboots/redémarrages
$ last reboot reboot system boot 3.2.0-4-amd64 Fri Feb 8 08:45 - 15:26 (06:40) reboot system boot 3.2.0-4-amd64 Thu Feb 7 08:45 - 18:48 (10:03) reboot system boot 3.2.0-4-amd64 Wed Feb 6 08:45 - 18:34 (09:49) reboot system boot 3.2.0-4-amd64 Tue Feb 5 08:45 - 18:33 (09:47) reboot system boot 3.2.0-4-amd64 Mon Feb 4 08:45 - 18:50 (10:04)
Liens
| |||||||||||||||||||||||||||||||||||
