How Do I Create a Startup Script in Ubuntu?
Contents How Do I Add a Startup Script in Linux? Create a Script Such as “Startup. Sh” Using Your Favorite Text Editor. Save the File in Your /Etc/Init. D/...
Contents
How do I add a startup script in Linux?
Create a script such as “startup.sh” using your favorite text editor. Save the file in your /etc/init. d/ directory. Change the permissions of the script (to make it executable) by typing “chmod +x /etc/init.
Must Read
How do I create a script in Ubuntu?
Steps to write and execute a script
- Open the terminal. Go to the directory where you want to create your script.
- Create a file with . sh extension.
- Write the script in the file using an editor.
- Make the script executable with command chmod +x <fileName>.
- Run the script using ./<fileName>.