bash – TMP环境变量发生了什么?

我总是听说在UNIX机器上找到临时文件夹的正确方法是查看TMP环境变量.在编写适用于Windows以及Linux的代码时,我会检查TEMP和TMP.

今天,我发现我的Ubuntu安装根本没有这个环境变量.

我知道你似乎总是依赖/ tmp来放置你的临时文件,但我明白TMP是用户可以告诉你将临时文件放在其他地方的方式.

还是这样吗?

你可能在想07-09.

This variable shall represent a pathname of a directory made available for programs that need a place to create temporary files.

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...