LoginSignup
30
9

More than 5 years have passed since last update.

Bashが壊れたときに対応した方法2018年8月

Posted at

やべぇ!Bashが壊れた!

.bash_profileでなにか変更し、sourceコマンドで再読込した際に、誤ってlsコマンドなどが使えなくなることがある。

Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found

そんなあなたにはこの、修復コマンドを送ります

export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
30
9
1

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
30
9