1SYSTEMD-TMPFILES(8)            systemd-tmpfiles            SYSTEMD-TMPFILES(8)
2
3
4

NAME

6       systemd-tmpfiles, systemd-tmpfiles-setup.service, systemd-tmpfiles-
7       setup-dev.service, systemd-tmpfiles-clean.service, systemd-tmpfiles-
8       clean.timer - Creates, deletes and cleans up volatile and temporary
9       files and directories
10

SYNOPSIS

12       systemd-tmpfiles [OPTIONS...] [CONFIGFILE...]
13
14       systemd-tmpfiles-setup.service
15
16       systemd-tmpfiles-setup-dev.service
17
18       systemd-tmpfiles-clean.service
19
20       systemd-tmpfiles-clean.timer
21

DESCRIPTION

23       systemd-tmpfiles creates, deletes, and cleans up volatile and temporary
24       files and directories, based on the configuration file format and
25       location specified in tmpfiles.d(5).
26
27       If invoked with no arguments, it applies all directives from all
28       configuration files. If one or more filenames are passed on the command
29       line, only the directives in these files are applied. If only the
30       basename of a configuration file is specified, all configuration
31       directories as specified in tmpfiles.d(5) are searched for a matching
32       file.
33

OPTIONS

35       The following options are understood:
36
37       --create
38           If this option is passed, all files and directories marked with f,
39           F, w, d, D, v, p, L, c, b, m in the configuration files are created
40           or written to. Files and directories marked with z, Z, t, T, a, and
41           A have their ownership, access mode and security labels set.
42
43       --clean
44           If this option is passed, all files and directories with an age
45           parameter configured will be cleaned up.
46
47       --remove
48           If this option is passed, the contents of directories marked with D
49           or R, and files or directories themselves marked with r or R are
50           removed.
51
52       --boot
53           Also execute lines with an exclamation mark.
54
55       --prefix=path
56           Only apply rules with paths that start with the specified prefix.
57           This option can be specified multiple times.
58
59       --exclude-prefix=path
60           Ignore rules with paths that start with the specified prefix. This
61           option can be specified multiple times.
62
63       --root=root
64           Takes a directory path as an argument. All paths will be prefixed
65           with the given alternate root path, including config search paths.
66
67       -h, --help
68           Print a short help text and exit.
69
70       --version
71           Print a short version string and exit.
72
73       It is possible to combine --create, --clean, and --remove in one
74       invocation. For example, during boot the following command line is
75       executed to ensure that all temporary and volatile directories are
76       removed and created according to the configuration file:
77
78           systemd-tmpfiles --remove --create
79

UNPRIVILEGED --CLEANUP OPERATION

81       systemd-tmpfiles tries to avoid changing the access and modification
82       times on the directories it accesses, which requires CAP_ADMIN
83       privileges. When running as non-root, directories which are checked for
84       files to clean up will have their access time bumped, which might
85       prevent their cleanup.
86

EXIT STATUS

88       On success, 0 is returned, a non-zero failure code otherwise.
89

SEE ALSO

91       systemd(1), tmpfiles.d(5)
92
93
94
95systemd 219                                                SYSTEMD-TMPFILES(8)
Impressum