Skip to content

Commit c9006f8

Browse files
committed
Update linux-exclusions.md
1 parent bbd8303 commit c9006f8

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

defender-endpoint/linux-exclusions.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -289,28 +289,28 @@ mdatp exclusion folder remove --path /var/log/ --scope global
289289
Folder exclusion removed successfully
290290
```
291291

292-
- Add an exclusion for a second folder:
292+
#### Example 4: Add an exclusion for a second folder
293293

294-
```bash
295-
mdatp exclusion folder add --path /var/log/ --scope epp
296-
mdatp exclusion folder add --path /other/folder --scope global
297-
```
294+
You can add an exclusion for a second folder.
298295

299-
```console
300-
Folder exclusion configured successfully
301-
```
296+
```bash
297+
mdatp exclusion folder add --path /var/log/ --scope epp
298+
mdatp exclusion folder add --path /other/folder --scope global
299+
```
302300

303-
- Add an exclusion for a folder with a wildcard in it:
304-
305-
> [!NOTE]
306-
> Wildcards aren't supported while configuring global exclusions.
301+
```console
302+
Folder exclusion configured successfully
303+
```
307304

308-
```bash
309-
mdatp exclusion folder add --path "/var/*/tmp"
310-
```
305+
#### Example 5: Add a folder exclusion with a wildcard
311306

312-
> [!NOTE]
313-
> This excludes paths under */var/\*/tmp/*, but not folders which are siblings of *tmp*; for example, */var/this-subfolder/tmp*, but not */var/this-subfolder/log*.
307+
You can add an exclusion for a folder with a wildcard. Keep in mind that Wildcards aren't supported while configuring global exclusions.
308+
309+
```bash
310+
mdatp exclusion folder add --path "/var/*/tmp"
311+
```
312+
313+
The previous command excludes paths under `*/var/*/tmp/*`, but not folders that are siblings of `*tmp*`. For example, `*/var/this-subfolder/tmp*` is excluded, but `*/var/this-subfolder/log*` isn't excluded.
314314

315315
```bash
316316
mdatp exclusion folder add --path "/var/" --scope epp

0 commit comments

Comments
 (0)