Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I want to run a simple command after boot.
How can I do it?
The first one is to put the full path of the command in /etc/rc.local:
or, the cron way:
@reboot cd /mypath;./mycommand
From the crontab manual:
@reboot Run once, at startup.