LoginSignup
6

More than 5 years have passed since last update.

ping 成功時にビープ音を鳴らす

Last updated at Posted at 2017-10-14

方法

-a オプションを付ける。

$ ping -a google.com

ちなみに -a オプションの代わりに -A オプションを使用することで、成功時ではなく失敗時にビープ音を鳴らすこともできる。

何の役に立つの?

例えば手元にあるマシンの LAN ケーブルをつなぎ変える場合に、ping コマンドをビープ音を鳴らしながら実行しておく。そうすると、つなぎ変えが成功したことを、マシンのディスプレイを見ることなく音で確認できる。

20171014_ping.png

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6