Mac でシャットダウン タイマーをスケジュールする 3 つの方法

尊渡假赌尊渡假赌尊渡假赌
リリース: 2024-09-19 02:11:28
オリジナル
640 人が閲覧しました

3 Ways to Schedule Shutdown Timer on Mac

ステップ 3: スケジュール オプションを選択します。

3 Ways to Schedule Shutdown Timer on Mac

ステップ 4: 実行する日付、時刻、アクションを指定します。

ステップ 5: 最後に、適用 をクリックします。

3 Ways to Schedule Shutdown Timer on Mac

以上です。指定した時刻に Mac をシャットダウンするようにスケジュールを設定することができました。手順が長すぎて理解できない場合は、タイマー クロック (有料) や全能の強力な調整 (フリーミアム) など、比較的簡単に作業を完了できる便利なアプリケーションがいくつかあります。

とはいえ、macOS Ventura を使用している場合、または省エネルギー オプションに触れずに同じ方法を実行したい場合は、次の方法に進んでください。

方法 2: ターミナルを使用する

ステップ 1: Command + Space キーを押し、ターミナル と入力します> を選択し、Return キーを押します。

ステップ 2: 以下のコマンドを入力し、Return を押します。

<span data-preserver-spaces="true">sudo shutdown -h +30</span>
ログイン後にコピー
ログイン後にコピー

: -h ではタイマーを設定できます。+30 は Mac がシャットダウンするまでの分数です。任意の時間数を追加できますが、必ず分に変換してください。 

3 Ways to Schedule Shutdown Timer on Mac

ステップ 3: 認証用のユーザー パスワードを入力し、Return を押します。

: パスワードを入力しても、パスワードは表示されません。

3 Ways to Schedule Shutdown Timer on Mac

これで完了です。すべてが正しく行われた場合、端末 は認識してシャットダウン タイマーを設定します。

3 Ways to Schedule Shutdown Timer on Mac

また、プロセスにプロセス ID (PID) 番号を割り当てます。 ID 番号をメモしておくと、シャットダウン タイマーを無効にするときに役立ちます。 手順が複雑すぎる場合は、プロセスを簡単にするサードパーティ製アプリがあります。読み続けてください。 

方法 3: デスクトップ ショートカットを作成する

ステップ 1: Command + Space キーを押し、「TextEdit<🎜」と入力します>、 を選択し、Return キーを押します。

ステップ 2: 新しいドキュメント をクリックします。

3 Ways to Schedule Shutdown Timer on Mac

空のテキストドキュメントが表示されます。

ステップ 3: Command+Shift+T を押して、プレーンテキスト フィールドにアクセスします。

3 Ways to Schedule Shutdown Timer on Mac

ステップ 4: 以下のコマンドを入力し、Return キーを 2 回押します。

<span data-preserver-spaces="true">#!/bin/bash</span>
ログイン後にコピー

3 Ways to Schedule Shutdown Timer on Mac

Step 5: Type the below command.

<span data-preserver-spaces="true">sudo shutdown -h +30</span>
ログイン後にコピー
ログイン後にコピー

Note: -h lets you set a timer, while +30 is the number of minutes after which your Mac will shut down. You can add any number of hours, but make sure you convert it to minutes. 

3 Ways to Schedule Shutdown Timer on Mac

Step 6: Finally, press Command+S to save the file with a simple name and destination (preferred Desktop). Uncheck the If no extension is provided, use .”txt”. options and click on Save.

3 Ways to Schedule Shutdown Timer on Mac

Now, to make the file executable, continue following the steps below.

Step 7: Press the Command + Space key, type Terminal, and press the Return key.

Step 8: Drag and drop the .txt file you created onto the Terminal and press Return.

3 Ways to Schedule Shutdown Timer on Mac

The terminal will auto-fetch the file location for you to quickly execute.

3 Ways to Schedule Shutdown Timer on Mac

Step 9: Enter your user password and press Return.

Note: When you type your password, it won’t be displayed.

3 Ways to Schedule Shutdown Timer on Mac

After which, the shutdown timer will begin, and your Mac will shut down after the set time.

3 Ways to Schedule Shutdown Timer on Mac

Now that you know how to enable a shutdown timer, it is equally important to know how to disable it. Continue reading.

How to Disable a Shutdown Timer on Mac

Turning off the shutdown timer is easy and only involves a few steps. All you have to do is kill the Process ID (PID). Follow the steps below.

Step 1: Press the Command + Space, type Terminal, and press the Return key.

Step 2: Type the below command and press Return.

<span data-preserver-spaces="true">sudo kill [pid number]</span>
ログイン後にコピー

Note: If you don’t remember the PID number, type sudo killall shutdown. It will disable all the active shutdown timers on your Mac.

3 Ways to Schedule Shutdown Timer on Mac

Step 3: Enter your user password and press Return.

Note: When you type your password, it won’t be displayed.

3 Ways to Schedule Shutdown Timer on Mac

There you have it. You have disabled a scheduled shutdown of your Mac. If you have any queries, check out the FAQ section below.

Mac のスケジュールされたシャットダウンに関する FAQ

1. Mac をシャットダウンしないとどうなりますか?

Mac を定期的に使用しており、良好な動作状態にある限り、Mac を長時間オンにしたままにしても、通常は問題ありません。

2. 1 時間後に Mac の電源を切るにはどうすればよいですか?

ターミナルを開く > sudo shutdown -h +60 > と入力します。戻るを押してください >ユーザーパスワードを入力(表示されません) >もう一度「Return」を押します。これで、シャットダウンがスケジュールされました。

3. Mac のスリープ タイマーを設定できますか?

はい、ターミナルで「pmset」コマンドを使用して、Mac のスリープ タイマーを設定できます。ただし、pmset コマンドを使用するには管理者権限が必要です。

ステップ 1: ターミナルを開きます
ステップ 2: コマンド を入力します。 sudo pmset sleep [time]
[time] をタイマーを設定する秒数に置き換えます。
ステップ 3: プロンプトが表示されたらパスワードを入力し、Return キーを押します。

タイマーをキャンセルするには、上記の手順に従って、sudo pmset sleep cancel と入力します。これによりスリープ タイマーがキャンセルされ、Mac は起動したままになります。

毎日のシャットダウン タイマーを設定する場合でも、1 回限りのイベントを設定する場合でも、この記事で説明されている方法が役立ちます。

以上がMac でシャットダウン タイマーをスケジュールする 3 つの方法の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

ソース:guidingtech.com
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!