当前位置:首页>Linux>Linux命令速查手册(200个)

Linux命令速查手册(200个)

  • 2026-07-04 01:54:39
Linux命令速查手册(200个)

最全面的Linux命令参考手册,一篇搞定所有常用命令


今天,我整理分享200个最常用的Linux命令,按功能分类,每个命令都有简洁的说明和实用示例。

看完你将拥有

  • • ✅ 完整的命令分类索引(10大类)
  • • ✅ 每个命令的核心用法
  • • ✅ 实用的命令示例
  • • ✅ 快速查找表

收藏这一篇,随时查阅,效率翻倍!


📋 目录

  • • 一、文件操作(30个)
  • • 二、文本处理(30个)
  • • 三、系统管理(30个)
  • • 四、网络操作(30个)
  • • 五、性能分析(20个)
  • • 六、故障排查(20个)
  • • 七、开发调试(20个)
  • • 八、容器编排(10个)
  • • 九、安全审计(5个)
  • • 十、其他工具(5个)
  • • 快速查找表
  • • 使用技巧

一、文件操作(30个)

1. ls - 列出文件

ls -lh          # 详细信息,人类可读ls -a           # 显示隐藏文件ls -lt          # 按时间排序ls -lS          # 按大小排序ls -R           # 递归显示

2. cd - 切换目录

cd /path        # 进入目录cd ..           # 返回上级cd -            # 返回上次目录cd ~            # 返回家目录

3. pwd - 当前目录

pwd# 显示当前路径pwd -P          # 显示物理路径

4. mkdir - 创建目录

mkdirdir# 创建目录mkdir -p a/b/c  # 递归创建mkdir -m 755 dir# 设置权限

5. rm - 删除文件

rm file         # 删除文件rm -r dir# 删除目录rm -rf dir# 强制删除rm -i file      # 交互式删除

6. cp - 复制文件

cp src dst      # 复制文件cp -r dir1 dir2 # 复制目录cp -p file dst  # 保留属性cp -a dir dst   # 归档复制

7. mv - 移动文件

mv src dst      # 移动/重命名mv -i src dst   # 交互式mv -f src dst   # 强制覆盖

8. touch - 创建文件

touch file      # 创建空文件touch -t 202401011200 file  # 指定时间

9. cat - 查看文件

cat file        # 查看文件cat -n file     # 显示行号cat file1 file2 > merged  # 合并文件

10. tac - 反向查看

tac file        # 从最后一行开始显示

11. head - 查看文件头部

head file       # 前10行head -n 20 file # 前20行

12. tail - 查看文件尾部

tail file       # 后10行tail -n 20 file # 后20行tail -f file    # 实时跟踪

13. less - 分页查看

less file       # 分页查看# 空格:下一页,b:上一页,/:搜索,q:退出

14. more - 分页查看

more file       # 简单分页

15. file - 文件类型

file file.txt   # 识别文件类型file -i file    # MIME类型

16. stat - 文件状态

stat file       # 详细信息stat -c "%n %s" file  # 自定义格式

17. find - 文件查找

find /path -name "*.txt"# 按名称find /path -type f -size +1G  # 按大小find /path -mtime -1      # 按时间find /path -name "*.tmp" -delete  # 删除

18. locate - 快速查找

locate file     # 快速查找updatedb        # 更新数据库

19. which - 命令位置

whichls# 命令路径which -a python # 所有匹配

20. whereis - 命令位置

whereis ls# 二进制、源码、手册

21. ln - 创建链接

ln -s target link# 软链接ln target link# 硬链接

22. readlink - 读取链接

readlinklink# 读取链接目标readlink -f link# 递归读取

23. basename - 文件名

basename /path/to/file  # 提取文件名

24. dirname - 目录名

dirname /path/to/file   # 提取目录名

25. realpath - 绝对路径

realpath file   # 获取绝对路径

26. tree - 树形显示

tree            # 树形显示目录tree -L 2       # 限制深度tree -d         # 只显示目录

27. du - 目录大小

du -sh dir# 目录总大小du -h --max-depth=1 | sort -rh  # 子目录排序

28. df - 磁盘空间

df -h           # 磁盘空间df -hi          # inode使用df -hT          # 显示类型

29. mount - 挂载

mount           # 显示挂载mount /dev/sdb1 /mnt  # 挂载设备

30. umount - 卸载

umount /mnt     # 卸载umount -l /mnt  # 强制卸载

二、文本处理(30个)

31. grep - 文本搜索

grep "pattern" file     # 搜索grep -i "pattern" file  # 忽略大小写grep -r "pattern"dir# 递归搜索grep -n "pattern" file  # 显示行号grep -v "pattern" file  # 反向匹配grep -c "pattern" file  # 统计匹配数grep -A 3 "pattern" file # 显示后3行grep -B 3 "pattern" file # 显示前3行grep -C 3 "pattern" file # 显示前后3行

32. egrep - 扩展grep

egrep "pattern1|pattern2" file  # 多模式

33. fgrep - 固定字符串grep

fgrep "literal.string" file  # 不解析正则

34. sed - 流编辑器

sed 's/old/new/' file       # 替换第一个sed 's/old/new/g' file      # 替换所有sed '/pattern/d' file       # 删除匹配行sed -n '10,20p' file        # 显示10-20行sed -i 's/old/new/g' file   # 就地编辑

35. awk - 文本分析

awk '{print $1}' file       # 打印第1列awk '{print $1, $3}' file   # 打印第1和第3列awk '$3 > 100' file         # 条件过滤awk '{sum+=$1} END {print sum}' file  # 求和awk -F: '{print $1}' /etc/passwd  # 指定分隔符

36. cut - 列提取

cut -d: -f1 /etc/passwd     # 提取第1字段cut -c1-10 file             # 提取1-10字符

37. paste - 列合并

paste file1 file2           # 横向合并paste -d',' file1 file2     # 指定分隔符

38. join - 文件合并

join file1 file2            # 按第一列合并

39. sort - 排序

sort file                   # 字典序sort -n file                # 数字排序sort -r file                # 反向排序sort -k2 file               # 按第2列排序sort -u file                # 去重排序

40. uniq - 去重

sort file | uniq# 去重sort file | uniq -c         # 统计重复sort file | uniq -d         # 只显示重复

41. wc - 统计

wc -l file                  # 行数wc -w file                  # 单词数wc -c file                  # 字节数

42. tr - 字符转换

echo"hello" | tr'a-z''A-Z'# 大写echo"hello123" | tr -d '0-9'# 删除数字

43. expand - 制表符转空格

expand file                 # 转换expand -t 4 file            # 指定宽度

44. unexpand - 空格转制表符

unexpand file               # 转换

45. split - 文件分割

split -l 1000 file part_    # 按行分割split -b 10M file part_     # 按大小分割

46. csplit - 上下文分割

csplit file '/pattern/''{*}'# 按模式分割

47. diff - 文件比较

diff file1 file2            # 比较文件diff -u file1 file2         # 统一格式diff -r dir1 dir2           # 比较目录

48. patch - 应用补丁

patch file < patch.diff     # 应用补丁

49. comm - 比较排序文件

comm file1 file2            # 比较

50. column - 列对齐

column -t file              # 对齐显示mount | column -t           # 格式化输出

51. fmt - 格式化文本

fmt file                    # 格式化fmt -w 80 file              # 指定宽度

52. fold - 折行

fold -w 80 file             # 80字符折行

53. nl - 添加行号

nl file                     # 添加行号

54. pr - 格式化打印

pr file                     # 格式化pr -2 file                  # 双列

55. tee - 双向输出

command | tee file          # 输出到屏幕和文件command | tee -a file       # 追加

56. xargs - 参数传递

find . -name "*.txt" | xargs rm# 批量删除cat files.txt | xargs -I {} cp {} /backup/  # 批量复制

57. printf - 格式化输出

printf"%s\n""hello"# 格式化输出printf"%-10s %5d\n""name" 123  # 对齐

58. echo - 输出文本

echo"text"# 输出echo -n "text"# 不换行echo -e "line1\nline2"# 解析转义

59. yes - 重复输出

yes# 重复输出yyes"text"# 重复输出text

60. seq - 生成序列

seq 10                      # 1到10seq 5 10                    # 5到10seq 1 2 10                  # 1到10,步长2

三、系统管理(30个)

61. ps - 进程列表

ps aux                      # 所有进程ps -ef                      # System V风格ps aux --sort=-%cpu         # CPU排序ps aux --sort=-%mem         # 内存排序

62. top - 进程监控

top                         # 实时监控top -p 1234                 # 监控指定进程top -u user                 # 监控指定用户

63. htop - 增强监控

htop                        # 彩色交互界面

64. kill - 终止进程

kill 1234                   # 正常终止kill -9 1234                # 强制终止kill -HUP 1234              # 重新加载

65. killall - 批量终止

killall nginx               # 终止所有nginxkillall -9 java             # 强制终止

66. pkill - 模式终止

pkill nginx                 # 终止nginxpkill -u user               # 终止用户进程

67. pgrep - 进程查找

pgrep nginx                 # 查找nginxpgrep -l nginx              # 显示进程名

68. pidof - 查找进程ID

pidof nginx                 # 查找nginx的PID

69. pstree - 进程树

pstree                      # 进程树pstree -p                   # 显示PID

70. nice - 设置优先级

nice -n 19 command# 低优先级运行

71. renice - 调整优先级

renice 10 -p 1234           # 调整优先级

72. nohup - 后台运行

nohupcommand &             # 后台运行

73. bg - 后台运行

bg %1                       # 将作业1放到后台

74. fg - 前台运行

fg %1                       # 将作业1放到前台

75. jobs - 作业列表

jobs# 显示作业

76. systemctl - 服务管理

systemctl start nginx       # 启动服务systemctl stop nginx        # 停止服务systemctl restart nginx     # 重启服务systemctl status nginx      # 查看状态systemctl enable nginx      # 开机自启systemctl disable nginx     # 禁用自启

77. service - 服务管理(旧)

service nginx start         # 启动服务service nginx stop          # 停止服务

78. journalctl - 日志查看

journalctl -u nginx         # 查看服务日志journalctl -f               # 实时跟踪journalctl --since today    # 今天的日志

79. dmesg - 内核日志

dmesg                       # 内核日志dmesg -T                    # 人类可读时间dmesg | grep -i error       # 查找错误

80. uptime - 运行时间

uptime# 运行时间和负载

81. uname - 系统信息

uname -a                    # 所有信息uname -r                    # 内核版本

82. hostname - 主机名

hostname                    # 显示主机名hostnamectl set-hostname new-name  # 设置主机名

83. date - 日期时间

date# 当前时间date"+%Y-%m-%d %H:%M:%S"# 格式化date +%s                    # 时间戳

84. cal - 日历

cal                         # 当月日历cal 2024                    # 全年日历

85. who - 登录用户

who# 当前登录用户

86. w - 用户活动

w                           # 用户活动详情

87. last - 登录历史

last                        # 登录历史last -n 10                  # 最近10条

88. lastlog - 最后登录

lastlog                     # 所有用户最后登录

89. id - 用户信息

id# 当前用户信息id username                 # 指定用户

90. whoami - 当前用户

whoami# 显示当前用户名

四、网络操作(30个)

91. ping - 连通性测试

ping -c 4 192.168.1.1       # 发送4个包ping -i 0.2 host            # 间隔0.2秒

92. traceroute - 路由追踪

traceroute 8.8.8.8          # 追踪路由

93. mtr - 网络诊断

mtr 8.8.8.8                 # 综合诊断mtr -r -c 100 8.8.8.8       # 报告模式

94. nslookup - DNS查询

nslookup www.baidu.com      # DNS查询

95. dig - DNS查询

dig www.baidu.com           # DNS查询dig @8.8.8.8 www.baidu.com  # 指定DNS服务器

96. host - DNS查询

host www.baidu.com          # DNS查询

97. netstat - 网络统计

netstat -ant                # TCP连接netstat -tlnp               # 监听端口netstat -s                  # 统计信息

98. ss - Socket统计

ss -ant                     # TCP连接ss -tlnp                    # 监听端口ss -s                       # 统计信息

99. ip - 网络配置

ip addr show                # 显示IP地址ip link show                # 显示网卡ip route show               # 显示路由

100. ifconfig - 网络接口

ifconfig                    # 显示所有接口ifconfig eth0               # 显示指定接口

101. route - 路由表

route -n                    # 显示路由表

102. arp - ARP缓存

arp -n                      # 显示ARP缓存

103. curl - HTTP客户端

curl http://example.com     # GET请求curl -I http://example.com  # 只看响应头curl -o file.html http://example.com  # 保存curl -X POST -d "data" http://api.com  # POST请求

104. wget - 文件下载

wget http://example.com/file.zip  # 下载wget -c http://example.com/file.zip  # 断点续传wget -r http://example.com  # 递归下载

105. scp - 安全复制

scp file user@host:/path/   # 上传scp user@host:/path/file .  # 下载scp -r dir user@host:/path/ # 上传目录

106. rsync - 同步工具

rsync -av src/ dst/         # 同步rsync -avz -e ssh src/ user@host:dst/  # 远程同步

107. ssh - 远程登录

ssh user@host               # 登录ssh -p 2222 user@host       # 指定端口ssh user@host command# 执行命令

108. telnet - 远程登录

telnet host 80              # 测试端口

109. nc (netcat) - 网络工具

nc -zv host 80              # 端口测试nc -l 8080                  # 监听端口

110. tcpdump - 抓包

tcpdump -i eth0             # 抓包tcpdump -i eth0 port 80     # 抓特定端口tcpdump -i eth0 -w capture.pcap  # 保存

111. iftop - 流量监控

iftop -i eth0               # 流量监控

112. nethogs - 进程流量

nethogs eth0                # 进程流量监控

113. nload - 网络负载

nload eth0                  # 网络负载

114. iperf - 性能测试

iperf -s                    # 服务器端iperf -c host               # 客户端

115. ethtool - 网卡工具

ethtool eth0                # 网卡信息ethtool -S eth0             # 统计信息

116. nmap - 网络扫描

nmap 192.168.1.100          # 端口扫描nmap -sV 192.168.1.100      # 版本检测

117. whois - 域名信息

whois example.com           # 域名信息

118. ftp - 文件传输

ftp host                    # FTP连接

119. sftp - 安全文件传输

sftp user@host              # SFTP连接

120. iptables - 防火墙

iptables -L -n              # 查看规则iptables -A INPUT -p tcp --dport 80 -j ACCEPT  # 添加规则

五、性能分析(20个)

121. perf - 性能分析

perf top                    # 实时热点perf record -g -p 1234      # 记录性能数据perf report                 # 分析报告perf stat -p 1234           # 统计信息

122. strace - 系统调用追踪

strace ls# 追踪命令strace -p 1234              # 追踪进程strace -c ls# 统计strace -e open ls# 只追踪open

123. ltrace - 库函数追踪

ltrace ls# 追踪库函数ltrace -p 1234              # 追踪进程

124. lsof - 打开文件

lsof -p 1234                # 进程打开的文件lsof /path/to/file          # 文件被哪些进程打开lsof -i :80                 # 端口占用

125. sar - 系统活动报告

sar -u 1 10                 # CPU使用率sar -r 1 10                 # 内存使用sar -b 1 10                 # IO统计

126. vmstat - 虚拟内存统计

vmstat 1                    # 每秒刷新vmstat -s                   # 统计信息

127. iostat - IO统计

iostat -x 1                 # 扩展统计iostat -d 1                 # 只显示设备

128. mpstat - 多处理器统计

mpstat -P ALL 1             # 所有CPU

129. pidstat - 进程统计

pidstat -u 1                # CPU统计pidstat -r 1                # 内存统计pidstat -d 1                # IO统计

130. free - 内存使用

free -h                     # 人类可读free -m                     # 以MB显示

131. slabtop - slab缓存

slabtop                     # slab缓存监控

132. atop - 全能监控

atop 5                      # 每5秒刷新atop -r file                # 回放历史

133. dstat - 综合统计

dstat -cdnm 1               # CPU、磁盘、网络、内存dstat --top-cpu             # CPU占用最高

134. glances - 一站式监控

glances                     # 综合监控glances -w                  # Web界面

135. nmon - 性能监控

nmon                        # 性能监控

136. time - 程序计时

timecommand# 测量执行时间/usr/bin/time -v command# 详细信息

137. pmap - 进程内存映射

pmap -x 1234                # 进程内存映射

138. smem - 内存报告

smem -s pss -r              # 按PSS排序

139. valgrind - 内存调试

valgrind --leak-check=full ./program  # 内存泄漏检测

140. gprof - 性能分析

gprof program gmon.out      # 分析性能数据

六、故障排查(20个)

141. journalctl - 系统日志

journalctl -u nginx         # 服务日志journalctl -f               # 实时跟踪journalctl --since today    # 今天的日志journalctl -p err           # 错误日志

142. dmesg - 内核日志

dmesg | tail# 最新日志dmesg -T                    # 人类可读时间dmesg | grep -i error       # 查找错误

143. logger - 写入日志

logger "message"# 写入syslog

144. logrotate - 日志轮转

logrotate /etc/logrotate.conf  # 手动轮转

145. fuser - 文件使用者

fuser /path/to/file         # 查看文件使用者fuser -k /path/to/file      # 终止使用者

146. ldd - 动态库依赖

ldd /bin/ls                 # 查看依赖库ldd program | grep "not found"# 检查缺失

147. nm - 符号表

nm program                  # 查看符号表

148. objdump - 对象文件分析

objdump -d program          # 反汇编objdump -h program          # 段信息

149. readelf - ELF文件分析

readelf -h program          # ELF头readelf -S program          # 段头

150. strings - 提取字符串

strings program             # 提取字符串strings program | grep "error"# 查找特定字符串

151. hexdump - 十六进制查看

hexdump -C file             # 十六进制查看

152. xxd - 十六进制编辑

xxd file                    # 十六进制查看xxd -r hexfile > binfile    # 转换回二进制

153. od - 八进制查看

od file                     # 八进制od -x file                  # 十六进制

154. gdb - 程序调试

gdb program                 # 调试程序gdb -p 1234                 # 附加到进程

155. core - 核心转储

ulimit -c unlimited         # 启用core dumpgdb program core            # 分析core文件

156. crash - 内核崩溃分析

crash vmlinux vmcore        # 分析内核崩溃

157. sysctl - 内核参数

sysctl -a                   # 所有参数sysctl vm.swappiness        # 查看参数sysctl -w vm.swappiness=10  # 设置参数

158. ulimit - 资源限制

ulimit -a                   # 所有限制ulimit -n 65535             # 设置文件描述符

159. lsmod - 内核模块

lsmod                       # 已加载模块

160. modprobe - 模块管理

modprobe module             # 加载模块modprobe -r module          # 卸载模块

七、开发调试(20个)

161. gcc - C编译器

gcc -o program source.c     # 编译gcc -g -o program source.c  # 调试版本gcc -O2 -o program source.c # 优化

162. g++ - C++编译器

g++ -o program source.cpp   # 编译g++ -std=c++11 -o program source.cpp  # 指定标准

163. make - 构建工具

make                        # 构建make clean                  # 清理make install                # 安装

164. cmake - 跨平台构建

cmake .                     # 生成Makefilecmake -DCMAKE_BUILD_TYPE=Debug .  # 调试版本

165. git - 版本控制

git clone url               # 克隆仓库git add file                # 添加文件git commit -m "message"# 提交git push                    # 推送git pull                    # 拉取git status                  # 状态git log# 日志

166. svn - 版本控制

svn checkout url            # 检出svn update                  # 更新svn commit -m "message"# 提交

167. diff - 文件比较

diff file1 file2            # 比较文件diff -u file1 file2         # 统一格式

168. patch - 应用补丁

patch file < patch.diff     # 应用补丁

169. ctags - 代码标签

ctags -R .                  # 生成标签

170. cscope - 代码浏览

cscope -R                   # 构建数据库

171. indent - 代码格式化

indent source.c             # 格式化代码

172. astyle - 代码格式化

astyle --style=linux source.c  # 格式化

173. clang-format - 代码格式化

clang-format -i source.c    # 格式化

174. splint - 静态分析

splint source.c             # 静态分析

175. cppcheck - C++静态分析

cppcheck source.cpp         # 静态分析

176. gcov - 代码覆盖率

gcov source.c               # 生成覆盖率报告

177. lcov - 覆盖率可视化

lcov --capture --directory . --output-file coverage.infogenhtml coverage.info --output-directory out

178. addr2line - 地址转行号

addr2line -e program 0x12345  # 地址转行号

179. size - 程序大小

size program                # 查看程序大小

180. strip - 去除符号

strip program               # 去除调试符号

八、容器编排(10个)

181. docker - 容器管理

docker run -d nginx         # 运行容器docker ps                   # 容器列表docker exec -it container bash  # 进入容器docker logs container       # 查看日志docker stop container       # 停止容器docker rm container         # 删除容器docker images               # 镜像列表docker pull image           # 拉取镜像docker build -t image .     # 构建镜像

182. docker-compose - 编排工具

docker-compose up -d        # 启动服务docker-compose down         # 停止服务docker-compose ps           # 服务列表docker-compose logs -f      # 查看日志

183. kubectl - Kubernetes客户端

kubectl get pods            # Pod列表kubectl describe pod name   # Pod详情kubectl logs pod            # 查看日志kubectl exec -it pod -- bash  # 进入Podkubectl apply -f file.yaml  # 应用配置kubectl delete pod name     # 删除Pod

184. helm - Kubernetes包管理

helm install name chart     # 安装charthelm list                   # 列出releasehelm upgrade name chart     # 升级helm uninstall name         # 卸载

185. podman - 容器管理

podman run -d nginx         # 运行容器podman ps                   # 容器列表

186. crictl - CRI客户端

crictl ps                   # 容器列表crictl pods                 # Pod列表

187. runc - 容器运行时

runc list                   # 容器列表runc exec container command# 执行命令

188. containerd - 容器运行时

ctr containers list         # 容器列表ctr images list             # 镜像列表

189. buildah - 镜像构建

buildah bud -t image .      # 构建镜像

190. skopeo - 镜像操作

skopeo copy docker://nginx docker://myregistry/nginx  # 复制镜像skopeo inspect docker://nginx  # 查看镜像信息

九、安全审计(5个)

191. sudo - 提权执行

sudocommand# 以root执行sudo -u user command# 以指定用户执行sudo -i                     # 切换到root

192. su - 切换用户

su -                        # 切换到rootsu - username               # 切换到指定用户

193. chmod - 修改权限

chmod 755 file              # 数字模式chmod u+x file              # 符号模式chmod -R 755 dir# 递归修改

194. chown - 修改所有者

chown user:group file       # 修改所有者和组chown -R user:group dir# 递归修改

195. chgrp - 修改组

chgrp group file            # 修改组chgrp -R group dir# 递归修改

十、其他工具(5个)

196. history - 命令历史

history# 显示历史history 10                  # 最近10条!123                        # 执行第123条!!                          # 执行上一条

197. alias - 命令别名

alias ll='ls -lh'# 创建别名alias# 显示所有别名unalias ll                  # 删除别名

198. man - 手册页

man ls# 查看手册man 5 passwd                # 查看第5节

199. info - 信息页

info ls# 查看信息页

200. help - 帮助信息

helpcd# 内置命令帮助command --help# 命令帮助

📊 快速查找表

按使用频率排序(Top 50)

排名
命令
功能
类别
1
ls
列出文件
文件操作
2
cd
切换目录
文件操作
3
grep
文本搜索
文本处理
4
cat
查看文件
文件操作
5
ps
进程列表
系统管理
6
top
进程监控
系统管理
7
df
磁盘空间
文件操作
8
du
目录大小
文件操作
9
tail
查看文件尾部
文本处理
10
vi/vim
文本编辑
文本处理
11
chmod
修改权限
安全审计
12
cp
复制文件
文件操作
13
mv
移动文件
文件操作
14
rm
删除文件
文件操作
15
tar
打包压缩
文件操作
16
find
文件查找
文件操作
17
systemctl
服务管理
系统管理
18
ping
网络测试
网络操作
19
ssh
远程登录
网络操作
20
sudo
提权执行
安全审计
21
pwd
当前目录
文件操作
22
mkdir
创建目录
文件操作
23
touch
创建文件
文件操作
24
head
查看文件头部
文本处理
25
less
分页查看
文本处理
26
sed
流编辑器
文本处理
27
awk
文本分析
文本处理
28
sort
排序
文本处理
29
uniq
去重
文本处理
30
wc
统计
文本处理
31
kill
终止进程
系统管理
32
netstat
网络统计
网络操作
33
ss
Socket统计
网络操作
34
curl
HTTP客户端
网络操作
35
wget
文件下载
网络操作
36
scp
安全复制
网络操作
37
chown
修改所有者
安全审计
38
free
内存使用
性能分析
39
iostat
IO统计
性能分析
40
vmstat
虚拟内存统计
性能分析
41
lsof
打开文件
故障排查
42
strace
系统调用追踪
性能分析
43
journalctl
系统日志
故障排查
44
dmesg
内核日志
故障排查
45
docker
容器管理
容器编排
46
git
版本控制
开发调试
47
make
构建工具
开发调试
48
gcc
C编译器
开发调试
49
history
命令历史
其他工具
50
alias
命令别名
其他工具

按功能分类索引

文件操作:ls, cd, pwd, mkdir, rm, cp, mv, touch, cat, find, du, df, mount, ln, tree

文本处理:grep, sed, awk, cut, sort, uniq, wc, tr, diff, head, tail, less, cat, tac, nl

系统管理:ps, top, kill, systemctl, journalctl, uptime, uname, who, last, nice, renice

网络操作:ping, ssh, scp, curl, wget, netstat, ss, ip, tcpdump, nmap, dig, traceroute

性能分析:perf, strace, lsof, sar, vmstat, iostat, free, top, htop, atop

故障排查:journalctl, dmesg, lsof, strace, gdb, ldd, fuser, sysctl

开发调试:gcc, make, git, gdb, diff, patch, ctags, valgrind

容器编排:docker, kubectl, helm, docker-compose

安全审计:sudo, chmod, chown, su


💡 使用技巧

1. 命令行快捷键

Ctrl+A    # 移到行首Ctrl+E    # 移到行尾Ctrl+U    # 删除到行首Ctrl+K    # 删除到行尾Ctrl+W    # 删除前一个单词Ctrl+L    # 清屏Ctrl+R    # 反向搜索历史Ctrl+C    # 终止当前命令Ctrl+Z    # 暂停当前命令Ctrl+D    # 退出当前shellTab       # 自动补全

2. 管道和重定向

command1 | command2              # 管道command > file                   # 输出重定向(覆盖)command >> file                  # 输出重定向(追加)command < file                   # 输入重定向command 2> file                  # 错误重定向command 2>&1                     # 错误输出到标准输出command &> file                  # 所有输出重定向command | tee file               # 输出到屏幕和文件

3. 通配符

*         # 匹配任意字符?         # 匹配单个字符[abc]     # 匹配a、b或c[a-z]     # 匹配a到z[!abc]    # 不匹配a、b、c{a,b,c}   # 匹配a或b或c

4. 命令替换

$(command)                       # 命令替换`command`                        # 命令替换(旧式)echo"Today is $(date)"# 示例

5. 后台运行

command &                        # 后台运行nohupcommand &                  # 后台运行(不挂断)command > /dev/null 2>&1 &       # 后台运行(丢弃输出)

6. 批量操作

# for循环for file in *.txt; domv"$file""${file%.txt}.bak"done# while循环cat files.txt | whileread file; docp"$file" /backup/done# xargsfind . -name "*.log" | xargs gzip

7. 常用别名

alias ll='ls -lh'alias la='ls -lha'alias grep='grep --color=auto'alias ..='cd ..'alias ...='cd ../..'aliasrm='rm -i'aliascp='cp -i'aliasmv='mv -i'

🎯 快速参考

文件权限

rwx = 7 (4+2+1)rw- = 6 (4+2)r-x = 5 (4+1)r-- = 4-wx = 3 (2+1)-w- = 2--x = 1--- = 0常用权限:755 = rwxr-xr-x  # 目录、可执行文件644 = rw-r--r--  # 普通文件600 = rw-------  # 私密文件777 = rwxrwxrwx  # 完全开放(不推荐)

信号

1  (HUP)   # 挂起,重新加载配置2  (INT)   # 中断(Ctrl+C)3  (QUIT)  # 退出(Ctrl+\)9  (KILL)  # 强制终止15 (TERM)  # 正常终止(默认)18 (CONT)  # 继续19 (STOP)  # 暂停

环境变量

$HOME# 家目录$PATH# 命令搜索路径$USER# 当前用户$SHELL# 当前shell$PWD# 当前目录$OLDPWD# 上次目录$?         # 上个命令退出状态$$         # 当前进程ID$!         # 最后一个后台进程ID

🎉 总结

这200个命令覆盖了Linux使用的方方面面:

✅ 文件操作(30个)- 日常使用基础✅ 文本处理(30个)- 数据处理核心✅ 系统管理(30个)- 系统运维必备✅ 网络操作(30个)- 网络管理工具✅ 性能分析(20个)- 性能优化利器✅ 故障排查(20个)- 问题诊断工具✅ 开发调试(20个)- 开发必备工具✅ 容器编排(10个)- 容器化时代✅ 安全审计(5个)- 安全管理✅ 其他工具(5个)- 效率提升

使用建议

  1. 1. 收藏本文,随时查阅
  2. 2. 按需学习,不必全记
  3. 3. 多加练习,熟能生巧
  4. 4. 善用Tab补全和--help
  5. 5. 查看man手册深入学习

学习路径

  • • 初级:掌握文件操作和文本处理(60个)
  • • 中级:掌握系统管理和网络操作(60个)
  • • 高级:掌握性能分析和故障排查(40个)
  • • 专家:掌握开发调试和容器编排(40个)

掌握这200个命令,你就能应对Linux使用的各种场景!


觉得有用?点个赞👍,转发给更多需要的人!

建议收藏,随时查阅!

#Linux #命令手册 #速查表 #技术干货 #工具书

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-04 11:03:26 HTTP/2.0 GET : https://f.mffb.com.cn/a/488500.html
  2. 运行时间 : 0.111266s [ 吞吐率:8.99req/s ] 内存消耗:5,110.13kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=66e6eca87f7aa566fdfaae9442a7c484
  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.000445s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000808s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000288s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000256s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000500s ]
  6. SELECT * FROM `set` [ RunTime:0.000206s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000525s ]
  8. SELECT * FROM `article` WHERE `id` = 488500 LIMIT 1 [ RunTime:0.006003s ]
  9. UPDATE `article` SET `lasttime` = 1783134206 WHERE `id` = 488500 [ RunTime:0.006304s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000303s ]
  11. SELECT * FROM `article` WHERE `id` < 488500 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000566s ]
  12. SELECT * FROM `article` WHERE `id` > 488500 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000474s ]
  13. SELECT * FROM `article` WHERE `id` < 488500 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001037s ]
  14. SELECT * FROM `article` WHERE `id` < 488500 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001422s ]
  15. SELECT * FROM `article` WHERE `id` < 488500 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.018429s ]
0.112884s