{"id":4548,"date":"2019-08-16T23:28:07","date_gmt":"2019-08-16T15:28:07","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4548"},"modified":"2019-08-16T23:28:09","modified_gmt":"2019-08-16T15:28:09","slug":"tempfile","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/tempfile","title":{"rendered":"tempfile\u547d\u4ee4 – \u4e34\u65f6\u6587\u4ef6\u547d\u540d"},"content":{"rendered":"\n
\u6709\u65f6\u5019\u5728\u5199Shell\u811a\u672c\u7684\u65f6\u5019\u9700\u8981\u4e00\u4e9b\u4e34\u65f6\u5b58\u50a8\u6570\u636e\u7684\u624d\u505a\uff0c\u6700\u9002\u5408\u5b58\u50a8\u4e34\u65f6\u6587\u4ef6\u6570\u636e\u7684\u4f4d\u7f6e\u5c31\u662f\/tmp\uff0c\u56e0\u4e3a\u8be5\u76ee\u5f55\u4e2d\u6240\u6709\u7684\u5185\u5bb9\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u5c31\u4f1a\u88ab\u6e05\u7a7a\u3002<\/p>\n\n\n\n
tempfile\u547d\u4ee4\u53ea\u6709\u5728\u57fa\u4e8eDebian\u7684\u53d1\u884c\u7248\u4e2d\u624d\u9ed8\u8ba4\u81ea\u5e26\uff0c\u6bd4\u5982Ubuntu\uff0c\u5176\u4ed6\u53d1\u884c\u7248\u6ca1\u6709\u8fd9\u4e2a\u547d\u4ee4\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>tempfile [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u7528\u4e00\u4e2a\u52a0\u5e26\u4e86\u968f\u673a\u6570\u7684\u6587\u4ef6\u540d\u4f5c\u4e3a\u4e34\u65f6\u6587\u4ef6\u547d\u540d\uff1a<\/p>\n\n\n\n \u6709\u65f6\u5019\u5728\u5199Shell\u811a\u672c\u7684\u65f6\u5019\u9700\u8981\u4e00\u4e9b\u4e34\u65f6\u5b58\u50a8\u6570\u636e\u7684\u624d\u505a\uff0c\u6700\u9002\u5408\u5b58\u50a8\u4e34\u65f6\u6587\u4ef6\u6570\u636e\u7684\u4f4d\u7f6e\u5c31\u662f\/tmp\uff0c\u56e0\u4e3a\u8be5\u76ee\u5f55 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4548"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4548"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4548\/revisions"}],"predecessor-version":[{"id":4622,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4548\/revisions\/4622"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}$<\/td> \u53d8\u91cf<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# temp_file_name=\"\/tmp\/file_$RANDOM\"<\/pre>\n","protected":false},"excerpt":{"rendered":"