LoginSignup
0
0

More than 1 year has passed since last update.

光明は "exec bash"

Posted at

何もない

とりあえずここに入って、と言われて。
入ってみたものの、何もない。
ps aux はエラーだし、 vi も利かないし。
矢印キー押すと ^[[A とか出るし。

bashだっつってんだろ。

# history
/bin/sh: 1: history: not found

ん? sh なの?

chshしよ。

# chsh -s /bin/bash
# echo $SHELL

# history
/bin/sh: 4: history: not found

んん?なんで /bin/sh のままなんだよ……

"exec bash"がすべてを解決してくれた

色々調べて。

exec bash
root@ip-x-x-x-x:/# echo $SHELL
/bin/bash
root@ip-x-x-x-x:/# history
    1  history

ようやくまともになった。

余談でしかない

psprocps
vivim

を入れることでなんとかなりました。 history は 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