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

Опубликовано: 16 Июль 2022
на канале: 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.


Смотрите видео Listing down available shell in linux and changing if needed for any user онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Technology Seeker 16 Июль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 23 раз и оно понравилось 0 людям.