close

之前一直困擾著如何修改預設的shell環境,

後來終於找到這個 Changing your default shell

以下摘要他的步驟:p


  1. Do a cat on /etc/shells. The output will show you the location of the binaries for all the shells installed on your system. IT IS EXTREMELY IMPORTANT THAT YOU KNOW EXACTLY WHERE THE SHELL YOU WANT TO USE IS!:
    cat /etc/shells

  2. Now use the chsh command to change your default shell. On Free and OpenBSD the command to change your default shell to bash is (this may differ if your on another *nix variant so read your man page for chsh):
    chsh -s /path/to/bash

  3. If you don't know what variant you are using do this to find out:
    uname -a




arrow
arrow
    全站熱搜
    創作者介紹
    創作者 iceis 的頭像
    iceis

    .: iceis' Blog :.

    iceis 發表在 痞客邦 留言(0) 人氣()