Sample Header Ad - 728x90

Find last shutdown time

21 votes
7 answers
74153 views
This is the command I am using: last -x|grep shutdown | head -1 but it's giving me the duration with +2 hours: shutdown system down 3.14-1-amd64 Mon Jul 21 08:43 - 22:19 (13:36) the last shutdown time (08:43) is correct, but the startup time (22:19, should be 20:19) is incorrect. Is there a better command to check how long ago the PC was shutdown? or is my DST settings or something else causing this? PS: I am using Debian testing *(Linux rig 3.14-1-amd64 #1 SMP Debian 3.14.12-1 (2014-07-11) x86_64 GNU/Linux)*
Asked by şaloma (541 rep)
Jul 21, 2014, 07:11 PM
Last activity: Jun 6, 2025, 04:20 AM