Files
cheatsheet-tldr/tldr/linux/systemctl-mask
2025-10-09 00:19:00 +00:00

22 lines
496 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl mask
> Link units to `/dev/null` so that they can be even started.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#mask%20UNIT%E2%80%A6>.
- Mask a service:
`systemctl mask {{service_name}}`
- Ensure that the service is shut down while masking:
`systemctl mask {{service_name}} --now`
- Mask a user service:
`systemctl mask {{service_name}} --user`