---
title: 'lfd:directorywatching:paths'
url: 'https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-directorywatching-paths'
markdown: 'https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-directorywatching-paths.md'
date: '2026-10-07'
description: 'Configure which files and directories will be monitored for changes by directory file watching. juggernaut --task=lfd:directorywatching:paths --oper=<path_add|path_del> --value=<string> Option Value Description --oper <string> The operation you want to perform. --value <s…'
taxonomy:
  category:
    - docs
  tag:
    - monitoring
---

[](#)  [ Basics ](https://docs.danami.com/juggernaut/)     [ Command Line Interface ](https://docs.danami.com/juggernaut/command-line-interface)      Lfd       lfd:directorywatching:paths    

# lfd:directorywatching:paths

Configure which files and directories will be monitored for changes by directory file watching.

```
juggernaut --task=lfd:directorywatching:paths --oper=<path_add|path_del> --value=<string>
```

| Option | Value | Description |
|---|---|---|
| `--oper` | <string> | The operation you want to perform. |
| `--value` | <string> | The path we want to add or delete. |
| `--restart` | <yes> | Restart the service after saving settings. |

## Examples

```
// add a path
juggernaut --task=lfd:directorywatching:paths --oper=path_add --value=/var/spool/cron --restart=yes

// remove a path
juggernaut --task=lfd:directorywatching:paths --oper=path_del --value=/var/spool/cron --restart=yes

// watch the web root for modified files and get alerted when they change
juggernaut --task=lfd:directorywatching:paths --oper=path_add --value=/var/www/vhosts --restart=yes
```

## Related Pages

- [Directory Watching](https://docs.danami.com/juggernaut/user-guide/directory-watching "Directory Watching")
- [Logging Settings](https://docs.danami.com/juggernaut/settings/firewall/logging-settings "Logging Settings")
- [Directory Watching](https://docs.danami.com/juggernaut/settings/login-failure-daemon/directory-watching "Directory Watching")
- [Statistics Settings](https://docs.danami.com/juggernaut/settings/login-failure-daemon/statistics-settings "Statistics Settings")

 [ ](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-directorywatching) [](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-statistics)

---

## Navigation

- Previous: [lfd:directorywatching](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-directorywatching.md)
- Next: [lfd:globallists](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-globallists.md)
