当前位置:首页>Linux>linux mkdir命令分享

linux mkdir命令分享

  • 2026-06-29 18:44:58
linux mkdir命令分享

华山再高,顶有过路。

一,mkdir命令是什么

https://man.he.net/man1/mkdir
mkdir - 创建目录
mkdir (Make Directory) 是 Linux 中最基础但也最强大的命令之一。除了简单的创建文件夹,配合不同的参数,能瞬间搭建复杂的目录结构。

二,参数

[root@master1 ~]# mkdir --help用法:mkdir [选项]... 目录...如果目录不存在,则创建该目录。长选项的必填参数对于短选项来说也是必填的。  -m, --mode=MODE   设置文件模式(如使用chmod命令),非a=rwx - umask  -p, --parents     如果已存在,则无错误;根据需要创建父目录  -v, --verbose     为每个创建的目录打印一条消息  -Z                将每个创建的目录的SELinux安全上下文设置为默认类型  --context[=CTX]  like -Z, 或者,如果指定了CTX,则将SELinux或SMACK安全上下文设置为CTX  --help		显示此帮助信息并退出  --version		显示版本信息并退出GNU coreutils online help: <http://www.gnu.org/software/coreutils/>请向<http://translationproject.org/team/zh_CN.html> 报告mkdir 的翻译错误要获取完整文档,请运行:info coreutils 'mkdir invocation'

三,例子

1、一键创建多层级目录(最常用)

在没有 -p 的情况下,如果父目录不存在,命令会报错。使用 -p 可以一次性创建整条路径。

[root@master1 ~]# mkdir /opt/dir2/dir3mkdir: 无法创建目录"/opt/dir2/dir3": 没有那个文件或目录[root@master1 ~]# mkdir /opt/dir2/dir3 -p[root@master1 ~]# ls /opt/dir2/dir3[root@master1 ~]# 

2、花括号扩展:瞬间搭建项目骨架

这是 mkdir 的“高阶玩法”,配合 Shell 的花括号 {},可以一次性创建多个平级或嵌套的目录,非常适合初始化项目结构。

[root@master1 ~]# mkdir -p /opt/dir2/{src,bin,doc,test}[root@master1 ~]# ls /opt/dir2/bin  dir3  doc  src  test[root@master1 ~]# 

3、创建复杂的嵌套结构:

[root@master1 ~]# mkdir -p /opt/dir2/dir3/{1..5}/{images,notes}[root@master1 ~]# ls /opt/dir2/dir3/1  2  3  4  5[root@master1 ~]# ls /opt/dir2/dir3/1/images  notes[root@master1 ~]# ls /opt/dir2/dir3/2/images  notes

4、创建带权限的目录(安全)

[root@master1 ~]# mkdir -m 700 /opt/dir2/secret1  # 创建一个权限为 700 的目录(所有者读写执行,其他人无任何权限)[root@master1 ~]# mkdir -m 500 /opt/dir2/secret2  # 创建一个权限为 600[root@master1 ~]# ls /opt/dir2/bin  dir3  doc  secret1  secret2  src  test[root@master1 ~]# ll /opt/dir2/总用量 0drwxr-xr-x 2 root root  6 5月  10 11:18 bindrwxr-xr-x 7 root root 51 5月  10 11:19 dir3drwxr-xr-x 2 root root  6 5月  10 11:18 docdrwx------ 2 root root  6 5月  10 11:23 secret1dr-x------ 2 root root  6 5月  10 11:24 secret2drwxr-xr-x 2 root root  6 5月  10 11:18 srcdrwxr-xr-x 2 root root  6 5月  10 11:18 test[root@master1 ~]# 

5、创建带时间戳的备份目录,结合命令替换 $(date ...),可以自动创建以当前日期命名的目录,常用于脚本备份

# 创建格式为 backup_20260510 的目录[root@master1 ~]# mkdir -p /opt/dir2/backup_$(date +%Y%m%d)[root@master1 ~]# ls /opt/dir2/ -lth总用量 0drwxr-xr-x 2 root root  6 5月  10 11:29 backup_20260510dr-x------ 2 root root  6 5月  10 11:24 secret2drwx------ 2 root root  6 5月  10 11:23 secret1drwxr-xr-x 7 root root 51 5月  10 11:19 dir3drwxr-xr-x 2 root root  6 5月  10 11:18 bindrwxr-xr-x 2 root root  6 5月  10 11:18 docdrwxr-xr-x 2 root root  6 5月  10 11:18 testdrwxr-xr-x 2 root root  6 5月  10 11:18 src

6、显示创建详情,加上 -v 可以清楚地看到发生了什么。

[root@master1 ~]# mkdir -pv /opt/dir2/a/bmkdir: 已创建目录 "/opt/dir2/a"mkdir: 已创建目录 "/opt/dir2/a/b"

7、创建包含空格的目录名,如果目录名中包含空格或特殊字符,必须使用引号包裹,或者使用转义字符。

# 方法一:使用引号(推荐)mkdir "my photos 2026"# 方法二:使用转义符mkdir my\ photos\ 2026[root@master1 ~]# mkdir /opt/dir2/"my photos 2026"[root@master1 ~]# mkdir /opt/dir2/my\ photos\ 2027[root@master1 ~]# ls /opt/dir2/[root@master1 ~]# ls /opt/dir2/ -lth总用量 0drwxr-xr-x 2 root root  6 5月  10 11:34 my photos 2027drwxr-xr-x 2 root root  6 5月  10 11:33 my photos 2026
8、组合拳:笛卡尔积式创建
[root@master1 ~]# mkdir -p /opt/dir2/{web,app,api}-env/{dev,test,prod}[root@master1 ~]# ls /opt/dir2/api-env  app-env  web-env[root@master1 ~]# ls /opt/dir2/ -R/opt/dir2/:api-env  app-env  web-env/opt/dir2/api-env:dev  prod  test/opt/dir2/api-env/dev:/opt/dir2/api-env/prod:/opt/dir2/api-env/test:/opt/dir2/app-env:dev  prod  test/opt/dir2/app-env/dev:/opt/dir2/app-env/prod:/opt/dir2/app-env/test:/opt/dir2/web-env:dev  prod  test/opt/dir2/web-env/dev:/opt/dir2/web-env/prod:/opt/dir2/web-env/test:
9、目录结构模板:复刻骨架,利用 mkdir 的嵌套能力,一键生成一个标准的软件项目骨架。
[root@master1 ~]# rm -rf /opt/dir2/*[root@master1 ~]# mkdir -p /opt/dir2/myapp/{src/{components,hooks,utils},public,tests/{unit,integration},docs}[root@master1 ~]# ls -lth -R /opt/dir2//opt/dir2/:总用量 0drwxr-xr-x 6 root root 56 5月  10 11:47 myapp/opt/dir2/myapp:总用量 0drwxr-xr-x 2 root root  6 5月  10 11:47 docsdrwxr-xr-x 4 root root 37 5月  10 11:47 testsdrwxr-xr-x 2 root root  6 5月  10 11:47 publicdrwxr-xr-x 5 root root 50 5月  10 11:47 src/opt/dir2/myapp/docs:总用量 0/opt/dir2/myapp/tests:总用量 0drwxr-xr-x 2 root root 6 5月  10 11:47 integrationdrwxr-xr-x 2 root root 6 5月  10 11:47 unit/opt/dir2/myapp/tests/integration:总用量 0/opt/dir2/myapp/tests/unit:总用量 0/opt/dir2/myapp/public:总用量 0/opt/dir2/myapp/src:总用量 0drwxr-xr-x 2 root root 6 5月  10 11:47 componentsdrwxr-xr-x 2 root root 6 5月  10 11:47 hooksdrwxr-xr-x 2 root root 6 5月  10 11:47 utils/opt/dir2/myapp/src/components:总用量 0/opt/dir2/myapp/src/hooks:总用量 0/opt/dir2/myapp/src/utils:总用量 0

10、创建“共享文件夹”(粘滞位),创建一个目录供多人协作(例如 /tmp 或团队共享目录),希望大家都能写入,但只能删除自己的文件,不能删除别人的文件,这时需要设置粘滞位(Sticky Bit)

效果: 所有用户都可以往里面存文件,但用户 A 无法删除用户 B 上传的文件,只有文件所有者和 root 能删除。

#创建带权限目录[root@master1 ~]# mkdir -m 1777 /opt/dir2/team_share -p[root@master1 ~]# ls /opt/dir2/ -lth总用量 0drwxrwxrwt 2 root root 6 5月  10 11:49 team_share[root@master1 team_share]# pwd/opt/dir2/team_share[root@master1 team_share]# ls -thmytest2  mytest1[root@master1 team_share]# ls -lth总用量 8.0K-rw-rw-r-- 1 test2 test2 2 5月  10 11:52 mytest2-rw-rw-r-- 1 test1 test1 2 5月  10 11:51 mytest1#测试权限,切换test1 test2 两个目录分别执行[test1@master1 ~]cd /opt/dir2/[test1@master1 team_share]echo 1 >  mytest2[test1@master1 team_share]lsmytest1  mytest2[test1@master1 team_share]echo 1 >  mytest2-bash: mytest2: 权限不够#test2测试[test1@master1 ~]cd /opt/dir2/[test1@master1 team_share]echo 2 >  mytest2[test1@master1 team_share]lsmytest1  mytest2[test2@master1 team_share]rm -rf mytest1 rm: 无法删除"mytest1": 不允许的操作
11、创建“黑洞”目录(仅 root 可见),创建一个只有 root 能看、能写的目录,普通用户甚至不知道里面有什么
[root@master1 team_share]# sudo mkdir -m 700 /opt/dir2/secure_logs#切换test1 用户[test1@master1 dir2]$ ls /opt/dir2/secure_logs/ls: 无法打开目录/opt/dir2/secure_logs/: 权限不够
12、自动创建“今日工作区”,把这个命令写在 .bashrc 或别名里,每天早上自动创建以今天日期命名的文件夹
# 定义别名:mktd (Make Today)[root@master1 dir2]# mkdir -p /opt/dir2/work/$(date +%Y-%m-%d) && cd /opt/dir2/work/$(date +%Y-%m-%d)[root@master1 2026-05-10]# pwd/opt/dir2/work/2026-05-10#从文件列表[root@master1 dir2]# vi list.txt[root@master1 dir2]# cat list.txt | xargs mkdir[root@master1 dir2]# ls -lth总用量 4.0Kdrwxr-xr-x 2 root root  6 5月  10 12:02 01drwxr-xr-x 2 root root  6 5月  10 12:02 02drwxr-xr-x 2 root root  6 5月  10 12:02 03-rw-r--r-- 1 root root  9 5月  10 12:02 list.txtdrwxr-xr-x 3 root root 24 5月  10 12:01 work[root@master1 dir2]# cat list.txt 010203

四,补充

作者       编写于 David MacKenzie.提交BUG       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>       Report any translation bugs to <https://translationproject.org/team/>版权       Copyright (C) 2020 Free Software Foundation, Inc.  License GPLv3+:  GNU       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.       这是免费软件:您可以自由修改和重新分发。在法律允许的范围内,不提供任何保证。关于       mkdir(2)       完整文档在 <https://www.gnu.org/software/coreutils/mkdir>      或在本地通过: info '(coreutils) mkdir invocation'

五,总结

mkdir 不仅仅是“新建文件夹”,它是文件系统的建筑师

  • 日常开发:
     多用 -p 和 {a,b}/c 语法。
  • 系统管理:
     善用 -m 和粘滞位。
  • 脚本编写:
     结合 $(date) 和 && 提升自动化水平
以前从没相关单独写一下mkdir,因为太常用了,今天再发掘,发现了一些mkdir 从没发现过的特性,比如权限玩法,分享给大家

最后的最后(Last but not least),欢迎交流:

关注公众号留言,或者在下方直接留言:

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 21:56:38 HTTP/2.0 GET : https://f.mffb.com.cn/a/492601.html
  2. 运行时间 : 0.300380s [ 吞吐率:3.33req/s ] 内存消耗:4,699.48kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=3118cf25d3cc902747731f356b4491e3
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000939s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001355s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000663s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000576s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001095s ]
  6. SELECT * FROM `set` [ RunTime:0.000542s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001226s ]
  8. SELECT * FROM `article` WHERE `id` = 492601 LIMIT 1 [ RunTime:0.005346s ]
  9. UPDATE `article` SET `lasttime` = 1783086999 WHERE `id` = 492601 [ RunTime:0.022978s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000586s ]
  11. SELECT * FROM `article` WHERE `id` < 492601 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001084s ]
  12. SELECT * FROM `article` WHERE `id` > 492601 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000991s ]
  13. SELECT * FROM `article` WHERE `id` < 492601 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.018000s ]
  14. SELECT * FROM `article` WHERE `id` < 492601 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.048835s ]
  15. SELECT * FROM `article` WHERE `id` < 492601 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.036305s ]
0.303897s