mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
systemd-tmpfiles: add --prefix example, add sudo (#23634)
This commit is contained in:
@@ -6,20 +6,24 @@
|
||||
|
||||
- Create files and directories as specified in the configuration:
|
||||
|
||||
`systemd-tmpfiles --create`
|
||||
`sudo systemd-tmpfiles --create`
|
||||
|
||||
- Create files and directories matching only a specific path prefix:
|
||||
|
||||
`sudo systemd-tmpfiles --create --prefix {{/var/log/journal}}`
|
||||
|
||||
- Clean up files and directories with age parameters configured:
|
||||
|
||||
`systemd-tmpfiles --clean`
|
||||
`sudo systemd-tmpfiles --clean`
|
||||
|
||||
- Remove files and directories as specified in the configuration:
|
||||
|
||||
`systemd-tmpfiles --remove`
|
||||
`sudo systemd-tmpfiles --remove`
|
||||
|
||||
- Apply operations for user-specific configurations:
|
||||
|
||||
`systemd-tmpfiles --create --user`
|
||||
`sudo systemd-tmpfiles --create --user`
|
||||
|
||||
- Execute lines marked for early boot:
|
||||
|
||||
`systemd-tmpfiles --create --boot`
|
||||
`sudo systemd-tmpfiles --create --boot`
|
||||
|
||||
Reference in New Issue
Block a user