With the cmd shutdown -h +<time>
you possibly can solely specify minutes for time.
I attempted utilizing decimals nevertheless it simply shuts down instantly.
Background
In case you shutdown from terminal then the terminal stays open if you energy on and might take some time to be usable.
I hardly contact the GUI no approach I’ll scroll all the way in which over to the button.
I acquired round this by placing this in my ~/bash_profile
:
alias sd='shutdown -h +1 && exit'
This shuts down after a minute, giving the terminal time to exit. Or I ought to say writing the cmd on this approach means it provides an exit code.
Solely drawback is I need it to shutdown in 10 or much less seconds however there appears to be no strategy to specify seconds.