Linux命令行常用快捷键:
Ctrl+a 光标移动到命令行首
Ctrl+e 光标移动到命令行尾部
Ctrl+k 删除光标后面的内容
Ctrl+u 删除光标前面的内容
Ctrl+d 退出当前shell命令行
关机、重启命令:
reboot #重启
poweroff #关机
shutdown -r now #重启
shutdown -h now #关机
shutdown -h +10 # 10分钟后关机并且通知所有用户关机信息
Shutdown scheduled for 六 2018-10-06 18:10:32 CST, use 'shutdown -c' to cancel.
Broadcast message from root@yunsu_daoyi (Sat 2018-10-06 18:09:32 CST):
The system is going down for reboot at Sat 2018-10-06 18:10:32 CST!
shutdown -h 11:00 #11点关机
Shutdown scheduled for Fri 2019-04-12 22:00:00 CST, use 'shutdown -c' to cancel.