用shutdown -h now 不能关机,屏幕仅显示shutdown的用法。
shutdown是关机的命令,在Linux下当然要带参数,如shutdown -h now 就是立刻关机的命令,但是在终端上运行这样的命令时Linux有时并不关机,参看了很多的资料,终于看到了,原来并不仅仅是root用户的问题,要将用户在切换到root时,使用su - root 输入密码后,再运行shutdown -h now,想要的结果就这样出来了,Linux关机了。