xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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 的多种方法汇总

image

$ 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

image

$SHELL

$ echo $SHELL
/bin/zsh

image

$0

$ echo $0
/bin/zsh

image

ps -p $$

$ ps -p $$
  PID TTY           TIME CMD
 2342 ttys002    0:00.42 /bin/zsh

image

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, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-11-30 15:41  xgqfrms  阅读(11)  评论(0编辑  收藏  举报