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?

More than 3 years have passed since last update.

Ubuntu20.04のターミナルでtab補完や上キーが使えない

Posted at

発生した現象

Ubuntuサーバーに新しいユーザーを作り、作業しようとしたのですが、tabキーを押してもパスが補完されず謎の空白が挿入され十字キーの上を押すと^[[Aという謎の文字列が挿入されました

ググってみると

こちらのサイトがヒット
書いてある通りに試してみましたが、改善せず

解決法

terminal
$ cat /etc/passwd

中略
username:x:1001:1001::/home/username:/bin/sh

catで/etc/passwdの中を見てみると、下の方にこんな記述があります。

これを下のように変更

terminal

$ vi /etc/passwd

中略
username:x:1001:1001::/home/username:/bin/bash

これで補完されるようになりました
詳しくはこちらの方のページを見てください。

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?