2025-03-14 21:59:59 -06:00
|
|
|
# systemd-tmpfiles
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> Create, delete, and clean up volatile and temporary files and directories.
|
|
|
|
|
> This command is automatically invoked on boot by systemd services and running it manually is usually not needed.
|
|
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-tmpfiles.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create files and directories as specified in the configuration:
|
|
|
|
|
|
|
|
|
|
`systemd-tmpfiles --create`
|
|
|
|
|
|
|
|
|
|
- Clean up files and directories with age parameters configured:
|
|
|
|
|
|
|
|
|
|
`systemd-tmpfiles --clean`
|
|
|
|
|
|
|
|
|
|
- Remove files and directories as specified in the configuration:
|
|
|
|
|
|
|
|
|
|
`systemd-tmpfiles --remove`
|
|
|
|
|
|
|
|
|
|
- Apply operations for user-specific configurations:
|
|
|
|
|
|
|
|
|
|
`systemd-tmpfiles --create --user`
|
|
|
|
|
|
|
|
|
|
- Execute lines marked for early boot:
|
|
|
|
|
|
|
|
|
|
`systemd-tmpfiles --create --boot`
|