How will you execute a Linux command after every reboot using cron?

How will you execute a Linux command after every reboot using cron?
Answer
To run a cron job at every system boot,
add a string called @reboot to the end of the task list. The job defined by this string runs at startup, immediately after Linux reboots. Note: Always use the full path to the job, script, or command you want to run, starting from the root.
 

Tìm kiếm

Back
Top