Last time my GNU/Linux booted after a reboot

last|grep reboot|head -1|cut -d' ' -f11
The `last` command lists the users that logged in the machine. There is a pseudo user named reboot which logs in each time the system is rebooted. Through the command `grep` we can filter this pseudo user out and then get the right column, with the time of boot, using the command `cut`.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.