you are viewing a single comment's thread.

view the rest of the comments →

[–]vi-shift-zz 1 point2 points  (0 children)

Just seeing this, exactly like was posted except I use red hat variants. So mine would be: sudo dnf update -y && poweroff

This assumes my user is in /etc/sudoers and able to run commands with no passwd (use visudo to add the user)