我經歷了慘痛的教訓
sudo reboot
在錯誤的時間是讓硬碟受到磁頭撞擊的好方法。
重新啟動在加密 LUKS 上運行的 Ubuntu 來手動「殺死」您知道的進程是唯一安全的方法嗎?對於這種情況,有 ''' sudo safe-reboot''' 命令嗎?
答案1
就在這裡/sbin/shutdown
。閱讀man shutdown
,您可以使用它來重新啟動或停止。請參閱man shutdown
,其中部分內容如下:
trusty (8) shutdown.8.gz
Provided by: upstart_1.12.1-0ubuntu4_i386 bug
NAME
shutdown - bring the system down
SYNOPSIS
shutdown [OPTION]... TIME [MESSAGE]
DESCRIPTION
shutdown arranges for the system to be brought down in a safe way. All
logged-in users are notified that the system is going down and, within
the last five minutes of TIME, new logins are prevented.