systemd-tmpfiles

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/systemd-tmpfiles.html>.

Install

All systems
curl cmd.cat/systemd-tmpfiles.sh
Debian Debian
apt-get install systemd
Ubuntu
apt-get install systemd
Arch Arch Linux
pacman -S systemd
image/svg+xml Kali Linux
apt-get install systemd
CentOS
yum install systemd
Fedora
dnf install systemd
Windows (WSL2)
sudo apt-get update sudo apt-get install systemd
Raspbian
apt-get install systemd

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/systemd-tmpfiles.html>.

  • 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

© tl;dr; authors and contributors