You Asked: How Do I Make a Script Run on Startup Ubuntu?
Contents

How do I run a script at startup Ubuntu?

How to run script on startup on Ubuntu 20.04 step by step instructions

  1. After: Instructs systemd on when the script should be run. …
  2. ExecStart: This field provides a full path to the actual script to be executed on startup.
  3. WantedBy: Into what boot target the systemd unit should be installed.

How do I get a script to run on startup 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.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest