how to set and check shell of linux

linux
Author

dd21

Published

January 10, 2023

Abstract

show current shell, assign shell to user, view all shells

Referance

texthttps://www.jianshu.com/p/00be2b2d2be4

show all

cat /etc/shells

view current shell

echo $SHELL

assign shell to which user

usermod -s /bin/zsh USERNAME