Replace the default Linux Shell

Change the default Linux Shell

  1. First check supported by the system shell

    cat / etc / shells or chsh -l

    got the answer:

     /bin/sh
     /bin/bash
     /bin/zsh
     /sbin/nologin
     /usr/bin/sh
     /usr/bin/bash
     /usr/bin/zsh
     /usr/sbin/nologin
  2. Shell to replace the default zsh (requires an administrator password)

    sudo chsh -s /usr/bin/zsh

  3. See if successful replacement

    grep your username / etc / passwd

    Finally, a message is currently used by the user shell type usr / bin / zsh

Reference: https://blog.csdn.net/liubenq/article/details/78446648

Guess you like

Origin www.cnblogs.com/geepair/p/11837387.html