0
1

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.

shell変更の仕方

Posted at

ターミナルからshellを変更するやり方

起動シェルを確認

echo $SHELL

結果

/usr/local/bin/fish

この場合fishを使っていることがわかる

シェル一覧を呼び出す

cat /etc/shells

結果

現在このPCに入っているshellの一覧が表示される

/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
/usr/local/bin/fish

起動シェルの変更

シェル一覧の中から起動したいshellをコピペする.
下記はbashに変更したい時の場合

chsh -s /bin/bash
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?