Chsh- Linux will learn 60 commands

1. Role

Role chsh command is to change the user shell settings, its use rights for all users.

2. Format

chsh [ -s ] [ -list] [ --help ] [ -v ] [ username ]

3. The main parameters

-l: Displays all Shell type system.

-v: display Shell version number.

4. application skills

Introduced in front of a variety of Shell under Linux, the general default is Bash, if you want to replace Shell type can use the chsh command. First enter the account password, and then enter the new Shell type, if done correctly the system will display "Shell change". The interface is generally as follows:

Changing fihanging shell for cao

Password:

New shell [/bin/bash]: /bin/tcsh

Code above, [] is the Shell currently used. Ordinary users can only modify their own Shell, the super user can modify all the user Shell. To query system which Shell provides, you can use chsh -l command, as shown in Figure 1.

Shell Type 1 system may be used in FIG.

As it can be seen in FIG. 1, Shell have the bash (default), csh, sh I can be used in the system, tcsh four.

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11107057.html