Microsoft Defender for Endpoint
Endpoint protection

Schedule security intelligence updates for Microsoft Defender for Endpoint on Linux

In brief

The guide now documents using `CRON_TZ`, verifying Defender cron jobs through `mdatp` log entries, managing jobs with Chef, and common crontab operations. Warnings were added for commands that remove crontab entries.

What Defender admins need to know

Administrators have clearer instructions for scheduling and checking Defender updates, with cautions to back up crontabs before using removal commands.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Schedule security intelligence updates for Microsoft Defender for Endpoint on Linux

Press "Insert"

Add the following entries:entries. Use the CRON_TZ setting to ensure the scheduled cron jobs run in the intended time zone:

CRON_TZ=America/Los_Angeles

Press "Esc"

:::image type="content" source="media/update-MDE-linux-4634577.jpg" alt-text="update Defender for Endpoint on Linux.":::

To verify that Defender-related cron jobs have run, search the cron log for mdatp entries:

sudo grep mdatp /var/log/cron

To open the log file and review output from scheduled Defender update tasks:

sudo nano mdatp_cron_job.log

Use Ansible's cron module to manage cron jobs:

```text
cron - Manage cron.d and crontab entries

To set crontabs in Chef

Use Chef's cron resource to manage cron jobs:

cron resource

Common crontab commands and examples

The following commands cover common crontab tasks such as listing, backing up, editing, and removing cron entries.

To get help with crontab

Run the following command to view the crontab manual page:

To remove all crontab entries

Use the following command to remove all crontab entries for the current user:


### To remove other user's crontab entries

Use the following command to remove another user's crontab entries:

```bash
crontab -u username -r

Use the following command to remove all crontab entries for the current user:


### To remove other user's crontab entries

Use the following command to remove all scheduled tasks for a specific user by deleting that user's crontab entries:

crontab -u username -r