0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntuのうるさいビープ音を最速一行で消す

Last updated at Posted at 2025-03-02

参考:https://level69.net/archives/32947#google_vignette

シェルで以下のコマンドを実行するだけです。

sudo sed -i 's/# set bell-style none/set bell-style none/' /etc/inputrc

パスワードを求められるので入力して下さい。sudoでないとファイルに書き込む権限がありません。ls -l /etc/inputrcとすると、このファイルの権限が-rw-r--r--であることがわかります。
参考:https://qiita.com/yunaimatsu/items/d9a388aa8874e154b925

/etc/inputrc内でコメントアウトされているset bell-style noneという設定の#を消して実行可能にします。#とsetの間に空白があることに注意してください。
sedコマンドで置換します。-iオプションによってファイルを編集することができます。

-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if SUFFIX supplied)

シェルを再起動すると反映されます。これ大事です。シェルを再起動すると反映されます!!!

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?