Startup script

I can't quite find a clear answer on how to properly write a start up script. Does anybody have any ideas??

What operating system are you using?

What shell are you using?

And, what are you trying to start with your startup script?

Please elaborate on your requirement.
Also, kindly provide the code (if any) which you have written so far

@ Don Cragun

I am using Kali Rolling, and I'm also using BASH as the shell. I'm trying to use ufw on start-up but I'm not quite sure how.

---------- Post updated at 02:43 PM ---------- Previous update was at 02:38 PM ----------

@ H squared

It's not so much of a "requirement" as it is something that would be extremely convenient. The only code that I've written is just a simple BASH script, as I normally would write one.

#!/bin/bash

 # Boot UFW and change MAC on start-up


sudo ufw enable

sudo ifconfig wlan0 down

sudo macchanger -A

It's super simple, and I've tried a few different things, but nothing seems to work. I'm unsure as how to proceed.