traceroute www.example.com
traceroute 是一个网络诊断工具,用于显示数据包从你的计算机到目标主机(例如 www.example.com)所经过的路由路径。它通过发送 ICMP 或 UDP 数据包,并逐步增加 TTL(生存时间)值来确定每个跃点的 IP 地址。
在 Linux 系统中,你可以直接在终端中输入上述命令来执行 traceroute。如果你没有安装 traceroute,可以通过以下命令进行安装:
sudo apt-get install traceroute # 对于基于 Debian 的系统
sudo yum install traceroute # 对于基于 Red Hat 的系统
如果你想使用更详细的输出或指定其他选项,可以参考 traceroute 的手册页:
man traceroute
上一篇:linux 获取时间
下一篇:linux 查看占用端口
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站