{"id":6433,"date":"2022-12-10T07:31:30","date_gmt":"2022-12-09T22:31:30","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=6433"},"modified":"2023-05-10T10:54:42","modified_gmt":"2023-05-10T01:54:42","slug":"ubuntu-desktop-20-04%e3%81%ae-tmp%e3%81%ae%e5%89%8a%e9%99%a4%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/6433","title":{"rendered":"Ubuntu Desktop 20.04\u306e\/tmp\u306e\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu Desktop 20.04\u306e\/tmp\u306e\u524a\u9664\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>systemd\u3078\u306e\u767b\u9332\u6709\u7121\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>systemd\u306b\/tmp\u524a\u9664\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# systemctl list-unit-files | grep systemd-tmpfiles | sort\r\nsystemd-tmpfiles-clean.service                                            static          enabled      \r\nsystemd-tmpfiles-clean.timer                                              static          enabled      \r\nsystemd-tmpfiles-setup-dev.service                                        static          enabled      \r\nsystemd-tmpfiles-setup.service                                            static          enabled\r\n<\/pre>\n<h2>\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\/tmp\u306e\u524a\u9664\u306b\u95a2\u3057\u3066\u306f\u3001\u300csystemd-tmpfiles-clean.service\u300d\u3068\u300csystemd-tmpfiles-clean.timer\u300d\u304c\u62c5\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,11,21,31]; title: ; notranslate\" title=\"\">\r\n# systemctl status systemd-tmpfiles-clean.service\r\n\u25cf systemd-tmpfiles-clean.service - Cleanup of Temporary Directories\r\n     Loaded: loaded (\/lib\/systemd\/system\/systemd-tmpfiles-clean.service; static; vendor preset: enabled)\r\n     Active: inactive (dead) since Fri 2022-12-09 20:27:23 JST; 10h ago\r\nTriggeredBy: \u25cf systemd-tmpfiles-clean.timer\r\n       Docs: man:tmpfiles.d(5)\r\n             man:systemd-tmpfiles(8)\r\n    Process: 17408 ExecStart=\/usr\/bin\/systemd-tmpfiles --clean (code=exited, status=0\/SUCCESS)\r\n   Main PID: 17408 (code=exited, status=0\/SUCCESS)\r\n\r\nWarning: journal has been rotated since unit was started, output may be incomplete.\r\n# systemctl status systemd-tmpfiles-clean.timer\r\n\u25cf systemd-tmpfiles-clean.timer - Daily Cleanup of Temporary Directories\r\n     Loaded: loaded (\/lib\/systemd\/system\/systemd-tmpfiles-clean.timer; static; vendor preset: enabled)\r\n     Active: active (waiting) since Fri 2022-12-09 20:12:20 JST; 11h ago\r\n    Trigger: Sat 2022-12-10 20:27:23 JST; 13h left\r\n   Triggers: \u25cf systemd-tmpfiles-clean.service\r\n       Docs: man:tmpfiles.d(5)\r\n             man:systemd-tmpfiles(8)\r\n\r\nWarning: journal has been rotated since unit was started, output may be incomplete.\r\n# systemctl status systemd-tmpfiles-setup-dev.service\r\n\u25cf systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in \/dev\r\n     Loaded: loaded (\/lib\/systemd\/system\/systemd-tmpfiles-setup-dev.service; static; vendor preset: enabled)\r\n     Active: active (exited) since Fri 2022-12-09 20:12:18 JST; 11h ago\r\n       Docs: man:tmpfiles.d(5)\r\n             man:systemd-tmpfiles(8)\r\n    Process: 450 ExecStart=\/usr\/bin\/systemd-tmpfiles --prefix=\/dev --create --boot (code=exited, status=0\/SUCCESS)\r\n   Main PID: 450 (code=exited, status=0\/SUCCESS)\r\n\r\nWarning: journal has been rotated since unit was started, output may be incomplete.\r\n# systemctl status systemd-tmpfiles-setup.service\r\n\u25cf systemd-tmpfiles-setup.service - Create Volatile Files and Directories\r\n     Loaded: loaded (\/lib\/systemd\/system\/systemd-tmpfiles-setup.service; static; vendor preset: enabled)\r\n     Active: active (exited) since Fri 2022-12-09 20:12:20 JST; 11h ago\r\n       Docs: man:tmpfiles.d(5)\r\n             man:systemd-tmpfiles(8)\r\n    Process: 994 ExecStart=\/usr\/bin\/systemd-tmpfiles --create --remove --boot --exclude-prefix=\/dev (code=exited, statu&gt;\r\n   Main PID: 994 (code=exited, status=0\/SUCCESS)\r\n\r\nWarning: journal has been rotated since unit was started, output may be incomplete.\r\n<\/pre>\n<h2>service\u3078\u306e\u767b\u9332\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u300csystemd-tmpfiles --clean\u300d\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# cat \/usr\/lib\/systemd\/system\/systemd-tmpfiles-clean.service\r\n#  SPDX-License-Identifier: LGPL-2.1+\r\n#\r\n#  This file is part of systemd.\r\n#\r\n#  systemd is free software; you can redistribute it and\/or modify it\r\n#  under the terms of the GNU Lesser General Public License as published by\r\n#  the Free Software Foundation; either version 2.1 of the License, or\r\n#  (at your option) any later version.\r\n\r\n&#x5B;Unit]\r\nDescription=Cleanup of Temporary Directories\r\nDocumentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)\r\nDefaultDependencies=no\r\nConflicts=shutdown.target\r\nAfter=local-fs.target time-set.target\r\nBefore=shutdown.target\r\n\r\n&#x5B;Service]\r\nType=oneshot\r\nExecStart=systemd-tmpfiles --clean\r\nSuccessExitStatus=DATAERR\r\nIOSchedulingClass=idle\r\n<\/pre>\n<h2>\u8d77\u52d5\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u8d77\u52d5\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u3001\u30d6\u30fc\u30c8\u5f8c15\u5206\u3068\u305d\u306e\u5f8c1\u65e5\u304a\u304d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# cat \/usr\/lib\/systemd\/system\/systemd-tmpfiles-clean.timer\r\n#  SPDX-License-Identifier: LGPL-2.1+\r\n#\r\n#  This file is part of systemd.\r\n#\r\n#  systemd is free software; you can redistribute it and\/or modify it\r\n#  under the terms of the GNU Lesser General Public License as published by\r\n#  the Free Software Foundation; either version 2.1 of the License, or\r\n#  (at your option) any later version.\r\n\r\n&#x5B;Unit]\r\nDescription=Daily Cleanup of Temporary Directories\r\nDocumentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)\r\n\r\n&#x5B;Timer]\r\nOnBootSec=15min\r\nOnUnitActiveSec=1d\r\n<\/pre>\n<h2>\u524a\u9664\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# cat \/usr\/lib\/tmpfiles.d\/tmp.conf\r\n#  This file is part of systemd.\r\n#\r\n#  systemd is free software; you can redistribute it and\/or modify it\r\n#  under the terms of the GNU Lesser General Public License as published by\r\n#  the Free Software Foundation; either version 2.1 of the License, or\r\n#  (at your option) any later version.\r\n\r\n# See tmpfiles.d(5) for details\r\n\r\n# Clear tmp directories separately, to make them easier to override\r\nD \/tmp 1777 root root -\r\n#q \/var\/tmp 1777 root root 30d\r\n<\/pre>\n<h2>\/tmp\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\/tmp\u3092\u78ba\u8a8d\u3059\u308b\u3068\u30011\u65e5\u4ee5\u5185\u306b\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3057\u304b\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# date\r\n2022\u5e74 12\u6708 10\u65e5 \u571f\u66dc\u65e5 08:02:39 JST\r\n# ls -l \/tmp\r\ntotal 52\r\n-rw------- 1 usradmin usradmin    0 12\u6708  9 20:12 config-err-6SJBjM\r\ndrwx------ 5 root     root     4096 12\u6708  9 20:12 snap-private-tmp\r\ndrwx------ 2 usradmin usradmin 4096 12\u6708  9 20:12 ssh-tH6hDX60WvzF\r\ndrwx------ 3 root     root     4096 12\u6708  9 20:12 systemd-private-d88328f367714c3f88b004ea22daa7ba-colord.service-FwatIg\r\ndrwx------ 3 root     root     4096 12\u6708 10 07:49 systemd-private-d88328f367714c3f88b004ea22daa7ba-fwupd.service-b8RuNf\r\ndrwx------ 3 root     root     4096 12\u6708  9 20:12 systemd-private-d88328f367714c3f88b004ea22daa7ba-ModemManager.service-tbWGSf\r\ndrwx------ 3 root     root     4096 12\u6708  9 20:12 systemd-private-d88328f367714c3f88b004ea22daa7ba-openvpn-client@client.service-aqCqUg\r\ndrwx------ 3 root     root     4096 12\u6708  9 20:12 systemd-private-d88328f367714c3f88b004ea22daa7ba-switcheroo-control.service-YE97Fi\r\ndrwx------ 3 root     root     4096 12\u6708  9 20:12 systemd-private-d88328f367714c3f88b004ea22daa7ba-systemd-logind.service-t2vVAi\r\ndrwx------ 3 root     root     4096 12\u6708  9 20:12 systemd-private-d88328f367714c3f88b004ea22daa7ba-systemd-resolved.service-09SGKf\r\ndrwx------ 3 root     root     4096 12\u6708  9 20:12 systemd-private-d88328f367714c3f88b004ea22daa7ba-systemd-timesyncd.service-avTj0e\r\ndrwx------ 3 root     root     4096 12\u6708  9 20:12 systemd-private-d88328f367714c3f88b004ea22daa7ba-upower.service-KX3pzi\r\ndrwx------ 2 usradmin usradmin 4096 12\u6708  9 20:35 tracker-extract-files.1000\r\ndrwx------ 2 root     root     4096 12\u6708  9 20:12 vmware-root\r\n<\/pre>\n<h2>tmp.conf\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>man\u30b3\u30de\u30f3\u30c9\u3067\u3001\u300ctmp.conf\u300d\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u69d8\u3005\u306a\u30bf\u30a4\u30d7\u306e\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3068\u524a\u9664\u3092\u3001\u300ctmp.conf\u300d\u306e\u8a2d\u5b9a\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# man tmpfiles.d\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\/tmp\u306e\u914d\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001systemd\u3067\u7ba1\u7406\u3055\u308c\u305f\u30b5\u30fc\u30d3\u30b9\u306b\u3088\u308a\u81ea\u52d5\u3067\u524a\u9664\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.ubuntu.com\/desktop\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu Desktop<\/a><\/li>\n<li><a href=\"https:\/\/www.ubuntu.com\/desktop\/developers\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu Desktop for developers<\/a><\/li>\n<li><a href=\"https:\/\/blog.ubuntu.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">ubuntu blog<\/a><\/li>\n<li><a href=\"https:\/\/wiki.ubuntu.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">ubuntu wiki<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/11138\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ubuntu Desktop 20.04\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_ubuntu_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ubuntu Desktop 20.04\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Ubuntu Desktop 20.04 LTS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/5239\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/08\/eye_debian_04-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/7679\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3vqrEPc\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source lazyload\" data-src=\"https:\/\/m.media-amazon.com\/images\/I\/51p2j7BlgUL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu Desktop 20.04\u306e\/tmp\u306e\u524a\u9664\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5284,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-6433","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu-desktop-2004"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/6433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=6433"}],"version-history":[{"count":3,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/6433\/revisions"}],"predecessor-version":[{"id":11466,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/6433\/revisions\/11466"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5284"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=6433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=6433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=6433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}