0

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?

Community
  • 1
  • 1
Kishan Bheemajiyani
  • 3,429
  • 5
  • 34
  • 68

1 Answers1

1

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.

Sanket Parmar
  • 1,477
  • 12
  • 9