How to change Shell

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.