Listing down available shell in linux and changing if needed for any user

Published: 16 July 2022
on channel: Technology Seeker
23
0

A list of available #shells can be found in file /etc/shells
We can see the available shell by cat this file as following
cat /etc/shells
If we want to change the shell for the current user or any user we can use the following #Linux #command
#chsh : This will prompt for the shell name you need to change to you can get the list from the first #Linu #command and change it accordingly
#chsh [user_name]: This will prompt to change shell for given user and you will need sudo access to change #shell for other users.
How to validate this:
echo $SHELL. : This will bring the shell for current user
cat /etc/passwd : you can check #shell for any user in this file.


Watch video Listing down available shell in linux and changing if needed for any user online without registration, duration hours minute second in high quality. This video was added by user Technology Seeker 16 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 23 once and liked it 0 people.