创建临时文件(6个X)

mktemp testing.XXXXXX  返回文件名

mktemp -t test.XXXXXX 返回完整路径名


创建临时目录: -d选项

mktemp -d dir.XXXXXX