In this article we are going to create a new cron job in TrueNAS using the web interface.
What is a “Cron Job”? It’s a time-based job scheduler in Unix-like computer operating systems. Users who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals.
So to create our first job we need to open the web panel go to your TruNAS IP address for example 192.168.0.7 and you will see the login dashboard (after you login):

Now go to Task -> Cron Jobs -> Add
There you have to fill A Job Description witch can be every name you like, after enter the command or script you want in this case we are running the command “clear” just for an example. Now select the user in our case it’s root, and set the Time of your schedule in our case is daily, after we have to additional options the first one is to hide the standard output so we don’t get any errors and we set the job to Enabled. After click submit.

You can run the command for to test with the option run now.

Here is a quick video on how to do this in 3 easy steps