How To Run A Command On StartUp in Linux (works on Centos & Ubuntu)
Free Linux Cheat Sheet: http://eepurl.com/dkRNM9
In this Linux tutorial I will show you how to run a command on startup on Linux. This tutorial uses Centos 7 but the commands will allow you to run a command on startup on Ubuntu and raspberry pi
This Linux tutorial first starts with showing you how to edit the rc.local file on Centos.
You then add content to this file.
You then give the rc.local the execute permission and then reboot the system.
By the end of this tutorial the viewer will be able to run a command on start up on Centos 7 Linux. The viewer will also be able to run a command on startup on Ubuntu and on other Linux systems including the raspberry pi
If you encounter any difficulty following this tutorial please comment below.
All the commands used can be found here: