Multiple Ways to Change Terminal Shell in Linux All In One
Multiple Ways to Change Terminal Shell in Linux All In One
Linux change terminal shell methods All Iin One
在 Linux 中更改终端 Shell 的多种方法汇总
$ cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/bash
/usr/bin/bash
/bin/rbash
/usr/bin/rbash
/bin/dash
/usr/bin/dash
/bin/zsh
/usr/bin/zsh
/usr/bin/fish
zsh
# find the path of zsh
$ type -a zsh
# zsh is /bin/zsh
$ chsh -s /bin/zsh
# change bash to zsh
/etc/shells
$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
$SHELL
$ echo $SHELL
/bin/zsh
$0
$ echo $0
/bin/zsh
ps -p $$
$ ps -p $$
PID TTY TIME CMD
2342 ttys002 0:00.42 /bin/zsh
gitlab & gitpod
云容器
https://webgeeker-nodejsfilesys-5mr88mivquv.ws-us77.gitpod.io/
https://gitlab.com/webgeeker/node.js-file-system
refs
https://www.cnblogs.com/xgqfrms/p/16934313.html#5129291
https://www.cyberciti.biz/faq/change-my-default-shell-in-linux-using-chsh/
https://linuxhandbook.com/change-shell-linux/
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/16934629.html
未经授权禁止转载,违者必究!