The systemd-analyze command will print the time taken for the system to boot up. This separates the time for the kernel and the userspace environment.
root@darkstar:~# systemd-analyze Startup finished in 4.728s (kernel) + 28.339s (userspace) = 33.068s |
This command will get the date and time from the Google website using curl.
jason@ubuntu:~$ curl -s --head http://google.com.au | grep ^Date: | sed 's/Date: //g' Sat, 26 Dec 2015 04:46:13 GMT |
To take a screenshot of the desktop, use this command.
jason@darkstar:~$ import +repage -window root scrot_$(date +%Y%m%d%H%M%S).png |
Now we can list the directory and see the screenshots we took.
jason@darkstar:~$ ls scrot* scrot_20151231111137.png scrot_20151231111149.png |