1

I was supposed to left my device always on since Monday

last reboot

give me

 reboot   system boot  4.4.0-98-generic Wed Dec  6 08:52   still running
 reboot   system boot  4.4.0-98-generic Mon Dec  4 09:40 - 18:12 (1+08:31)

is it correct?

0

See man last:

last searches back through the /var/log/wtmp file (or the file designated by the -f option) and displays a list of all users logged in (and out) since that file was created. One or more usernames and/or ttys can be given, in which case last will show only the entries matching those arguments. Names of ttys can be abbreviated, thus last 0 is the same as last tty0.

For your command last reboot:

The pseudo user reboot logs in each time the system is rebooted. Thus last reboot will show a log of all the reboots since the log file was created.

Shows you number of reboots the system went through, and reboot and shutdown are pseudo-users for system reboot and shutdown, respectively.

| improve this answer | |
  • i don't understand why 2 rows and not a one? i'm only user of system. Ok. i have to consult famous man. – Yurij Dec 6 '17 at 6:25
  • How many times have you reboot since log file was created, and is this a fresh install? Mine is 13 lines and I am the only user! – George Udosen Dec 6 '17 at 6:35
  • one time. Monday – Yurij Dec 6 '17 at 6:37
  • fresh install? no, this is ubuntu re-cloned by clonezilla. from one hdd to other. i have no problem i believe i m fine – Yurij Dec 6 '17 at 6:41
  • one strange - uname -r 4.4.0-98-generic at boot time grub show 101 kernel – Yurij Dec 6 '17 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.