临时写一些脚本,定期会被删除,特意找了下相关的文档。
SourceByrd's Weblog-https://note.t4x.org/basic/centos-tmpfilesd-tmp/SourceByrd's Weblog-https://note.t4x.org/basic/centos-tmpfilesd-tmp/相关文件位置:
012 /etc/tmpfiles.d/*.conf/run/tmpfiles.d/*.conf/usr/lib/tmpfiles.d/*.conf
文件内容:
SourceByrd's Weblog-https://note.t4x.org/basic/centos-tmpfilesd-tmp/
0123456789101112131415161718 # cat /usr/lib/tmpfiles.d/tmp.conf# This file is part of systemd.## systemd is free software; you can redistribute it and/or modify it# under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or# (at your option) any later version.# See tmpfiles.d(5) for details# Clear tmp directories separately, to make them easier to overridev /tmp 1777 root root 10dv /var/tmp 1777 root root 30d# Exclude namespace mountpoints created with PrivateTmp=yesx /tmp/systemd-private-%b-*X /tmp/systemd-private-%b-*/tmpx /var/tmp/systemd-private-%b-*X /var/tmp/systemd-private-%b-*/tmp
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!