小编Mat*_*att的帖子

linux ping 实际上每秒发送 1 个数据包

我一直在经历一些奇怪的行为。在拥塞的无线网络上运行时

$ ping google.com
Run Code Online (Sandbox Code Playgroud)

我希望每秒发送一个数据包,并且只有其中一些数据包以各种往返时间返回,这是大多数情况下的行为。但是在这个非常拥挤的无线网络上,我看到的是这样的:

PING google.com (74.125.224.228) 56(84) bytes of data.
64 bytes from lax04s08-in-f4.1e100.net (74.125.224.228): icmp_req=1 ttl=53 time=193 ms
64 bytes from lax04s08-in-f4.1e100.net (74.125.224.228): icmp_req=2 ttl=53 time=238 ms
64 bytes from lax04s08-in-f4.1e100.net (74.125.224.228): icmp_req=3 ttl=53 time=96.8 ms
64 bytes from lax04s08-in-f4.1e100.net (74.125.224.228): icmp_req=4 ttl=53 time=12.9 ms
64 bytes from lax04s08-in-f4.1e100.net (74.125.224.228): icmp_req=5 ttl=53 time=219 ms
64 bytes from lax04s08-in-f4.1e100.net (74.125.224.228): icmp_req=9 ttl=53 time=1105 ms
64 bytes from lax04s08-in-f4.1e100.net (74.125.224.228): icmp_req=8 ttl=53 time=2339 ms
64 bytes from lax04s08-in-f4.1e100.net (74.125.224.228): …
Run Code Online (Sandbox Code Playgroud)

networking linux wireless-networking ping

5
推荐指数
1
解决办法
2656
查看次数

来自 .inputrc 的 bash readline 的元键绑定不起作用

如果我把

"\M-p": previous-history
Run Code Online (Sandbox Code Playgroud)

进入我的 .inputrc 并启动一个终端(urxvt 或 xterm),按 Alt-p 打印一个“:”字符。随后的点击产生 ^[p 像这样:

:^[p^[p^[p^[p^[p
Run Code Online (Sandbox Code Playgroud)

我希望 Alt-p 能够像 Control-p 那样给我历史记录中的上一个命令。我已经通过将以前的历史记录绑定到 Control-t 来验证 .inputrc 正在被读取,并且有效。

"\C-t": previous-history
Run Code Online (Sandbox Code Playgroud)

我也试过

Meta-p: previous-history
Run Code Online (Sandbox Code Playgroud)

没有成功。

其他人遇到过这个问题吗?难道我做错了什么?我在 Debian sid 上使用 xmonad。

bash readline inputrc

1
推荐指数
1
解决办法
980
查看次数

标签 统计

bash ×1

inputrc ×1

linux ×1

networking ×1

ping ×1

readline ×1

wireless-networking ×1