On Wed, Feb 01, 2017 at 03:13:45AM +0800, ????????? Dan Jacobson wrote: > GW> I'm confused. You don't logout before shutting down your computer? > GW> I would strongly recommend doing so, unless it's an emergency. > > All I know is I want to issue one command to turn off the computer. > If I logged off first, how could I issue that (poweroff(8)) command?
Log out, log back in as root, issue the command, and accept that root's (very short) shell history will be lost. > OK you people turn off your computers by pressing buttons. I see. It is > my problem. Yes, most people probably do it this way.