和6年能登半島地震により亡くなられた方々のご冥福をお祈りするとともに、被害に遭われた皆さまに対し、心よりお見舞い申し上げます。一日も早く被災地の安全が確保され、復旧が進む事を心よりお祈り申し上げます。

shutdown -p now

そっか・・・p オプション。知らなかった(汗

FreeBSDでシステムを停止し、電源をオフする場合

shutdown -p now

SHUTDOWN(8)             FreeBSD System Manager’s Manual            SHUTDOWN(8)

NAME

shutdown — close down the system at a given time

SYNOPSIS

shutdown [-] [-h | -p | -r | -k] [-o [-n]] time [warning-message …]

DESCRIPTION

The shutdown utility provides an automated shutdown procedure for super-

users to nicely notify users when the system is shutting down, saving

them from system administrators, hackers, and gurus, who would otherwise

not bother with such niceties.

The following options are available:

-h      The system is halted at the specified time.

-p      The system is halted and the power is turned off (hardware sup-port required) at the specified time.

-r      The system is rebooted at the specified time.

コメント