I have been trying to determine if a shutdown has been scheduled in my system (Ubuntu 17.10). If I input via terminal "shutdown 100", it confirms that system will shut down at a time. But later on, how can I check which time it was if I have that terminal close already.
I found several solutions but none of them works:
ps -ef | grep shutdown
It shows shutdown all the time, even if shutdown has been cancelled.
systemctl status systemd-shutdownd.service
It seems it does not work anymore
It returns the same either if there is shutdown pending or not.