{"id":9115,"date":"2020-09-24T23:06:32","date_gmt":"2020-09-24T15:06:32","guid":{"rendered":"https:\/\/jpuyy.com\/?p=9115"},"modified":"2021-10-18T10:38:37","modified_gmt":"2021-10-18T02:38:37","slug":"mktemp-%e7%94%9f%e6%88%90%e4%b8%b4%e6%97%b6%e6%96%87%e4%bb%b6%e6%88%96%e7%9b%ae%e5%bd%95","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=9115","title":{"rendered":"mktemp \u751f\u6210\u4e34\u65f6\u6587\u4ef6\u6216\u76ee\u5f55"},"content":{"rendered":"<pre>\r\nUsage: mktemp [OPTION]... [TEMPLATE]\r\nCreate a temporary file or directory, safely, and print its name.\r\nTEMPLATE must contain at least 3 consecutive 'X's in last component.\r\nIf TEMPLATE is not specified, use tmp.XXXXXXXXXX, and --tmpdir is implied.\r\nFiles are created u+rw, and directories u+rwx, minus umask restrictions.\r\n\r\n  -d, --directory     create a directory, not a file\r\n  -u, --dry-run       do not create anything; merely print a name (unsafe)\r\n  -q, --quiet         suppress diagnostics about file\/dir-creation failure\r\n      --suffix=SUFF   append SUFF to TEMPLATE; SUFF must not contain a slash.\r\n                        This option is implied if TEMPLATE does not end in X\r\n  -p DIR, --tmpdir[=DIR]  interpret TEMPLATE relative to DIR; if DIR is not\r\n                        specified, use $TMPDIR if set, else \/tmp.  With\r\n                        this option, TEMPLATE must not be an absolute name;\r\n                        unlike with -t, TEMPLATE may contain slashes, but\r\n                        mktemp creates only the final component\r\n  -t                  interpret TEMPLATE as a single file name component,\r\n                        relative to a directory: $TMPDIR, if set; else the\r\n                        directory specified via -p; else \/tmp [deprecated]\r\n      --help     display this help and exit\r\n      --version  output version information and exit\r\n\r\nGNU coreutils online help: <http:\/\/www.gnu.org\/software\/coreutils\/>\r\nFor complete documentation, run: info coreutils 'mktemp invocation'\r\n\r\n<\/pre>\n<p>\u751f\u6210\u968f\u673a\u503c<\/p>\n<pre>\r\nmktemp -u | awk -F'\/' '{print $NF}'\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Usage: mktemp [OPTION]&#8230; [TEMPLATE] Create a temporary file or directory, safely, and print its name. TEMPLATE must contain at least 3 consecutive &#8216;X&#8217;s in last component. If TEMPLATE is not specified, use tmp.XXXXXXXXXX, and &#8211;tmpdir is implied. Files are created u+rw, and directories u+rwx, minus umask restrictions. -d, &#8211;directory create a directory, not a file [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[196],"tags":[],"class_list":["post-9115","post","type-post","status-publish","format-standard","hentry","category-shell"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9115"}],"version-history":[{"count":2,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9115\/revisions"}],"predecessor-version":[{"id":9412,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9115\/revisions\/9412"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}