Quantcast
Channel: Bashタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 2722

shell変更の仕方

$
0
0

ターミナルから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

Viewing all articles
Browse latest Browse all 2722

Trending Articles