4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

/etc/rc.localと/etc/rc.d/rc.localの違い

Last updated at Posted at 2019-07-25

環境

CentOS7.6

結論

/etc/rc.localは/etc/rc.d/rc.localのシンボリックリンク。

# ls -l rc.local
lrwxrwxrwx 1 root root 13 Dec  4  2018 rc.local -> rc.d/rc.local

rc.localとは

OS起動時に実行したい処理を記述するファイル。

蛇足

CentOS7 OS起動時 処理とかでググると、
/etc/rc.local に書けばいいって書いてる記事と
/etc/rc.d/rc.local に書けばいいって書いてる記事がある。

どっちに書けばええんや!と思ってググってみたけど決定的な情報は見つからんかった。

しかしls -l 叩いてみたら一目瞭然でした。。
ググる前に実機見ろって話でした。

おしまい

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?