systemd-tmpfiles
Create, delete, and clean up volatile and temporary files and directories. tldr-pages
On Linux
Linux
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.
Create files and directories as specified in the configuration
sudo systemd-tmpfiles --createIdentifyCreate files and directories matching only a specific path prefix
sudo systemd-tmpfiles --create --prefix /var/log/journalIdentifyClean up files and directories with age parameters configured
sudo systemd-tmpfiles --cleanIdentifyRemove files and directories as specified in the configuration
sudo systemd-tmpfiles --removeIdentifyApply operations for user-specific configurations
sudo systemd-tmpfiles --create --userIdentifyExecute lines marked for early boot
sudo systemd-tmpfiles --create --bootIdentify