Kishan Bheemajiyani
Kishan Bheemajiyani

Reputation: 3439

How to Run Script File on Ubuntu Every time Ubuntu Starts

I have Make one Script File that i need to run every time when ubuntu starts so how can i put that file on startup. not in start up folder that will run every time but i need to find other way to run that script every time how can i do that?

i have used some of the reference but its not working. How to run a script at the start up of Ubuntu?

Upvotes: 0

Views: 1224

Answers (1)

Sanket Parmar
Sanket Parmar

Reputation: 1577

Run following command to create new cronjob entry

$ crontab -e 

It will open text editor.(For first time it will ask you to select default text editor). Add your script with @reboot keyword

@reboot /path/to/your/script.sh

Save the file. That's it.

Upvotes: 1

Related Questions