Running commands and shell scripts at boot time

Edit the file below and put your commands at the end of it.

CentOS/RHEL

/etc/rc.d/rc.local

Debian/Ubuntu There is a similar file with the path:

/etc/rc.local

However, make sure to write your commands before the exit 0 line.

Source

1 thought on “Running commands and shell scripts at boot time

  1. Pingback: Increasing write timeout on a block device | Useful snippets

Leave a Reply

Your email address will not be published. Required fields are marked *

Markdown is allowed in comments.