How do I make a program run at startup in Linux?

Như Quỳnh

New member
How do I make a program run at startup in Linux?
Answer
Automatically run program on Linux startup via cron
  1. Open the default crontab editor. $ crontab -e. …
  2. Add a line starting with @reboot. …
  3. Insert the command to start your program after the @reboot. …
  4. Save the file to install it to the crontab. …
  5. Check if crontab is properly configured (optional).
 

Tìm kiếm

Back
Top