You can change the shell in three ways:
1. Change the default shell for all later logon sessions
Enter the command CHSH-L to view the available shell and its path of the current system.
After entering CHSH, the system prompts you to enter the shell that you want to set as the default shell.Full path
The default shell for subsequent logon is set, but the current running is still the original shell
2. Create a Shell Running on the default shell
Enter the shell name, for example, tcsh.
Enter the ps command to see that both shells are running.
3. Only change the shell in the current logon session
Enter exec/bin/tcsh to change the current shell to tcsh.
If PS finds that only one shell is running at this time.
If/bin is in the search path, you can directly exec tcsh.
Note: The echo $ shell command displays the current default shell path. After the first modification, the $ shell variable remains unchanged. You must wait until you log on again, this variable will change