Linuxで起動時にコマンドを実行するには? [コピー]

Linuxで起動時にコマンドを実行するには? [コピー]

重複の可能性:
起動時にBashスクリプトがありますか? (Linux)

起動時にいくつかのコマンドを実行したいと思います。

ベストアンサー1

使用/etc/rc.local

私のシステムでは、レビューのタイトルは次のとおりです。

# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

おすすめ記事