Article directory
foreword
There are four commonly used shutdown commands in the Linux system: shutdown, halt, poweroff, and init. The following describes the usage of each command in detail.
1. The halt command
1. Grammar:
halt [-n] [-w] [-d] [-f] [-i] [-p]
2. Parameter description:
-n : 在关机前不做将记忆体资料写回硬盘的动作
-w : 并不会真的关机,只是把记录写到 /var/log/wtmp 文件里
-d : 不把记录写到 /var/log/wtmp 文件里(-n 这个参数包含了 -d) -f :