Linux chsh command details how to use Linux chsh command

Source: Internet
Author: User

The Linux chsh command is used to change the user's shell settings.

Permission: all users.

Syntax

Shell> chsh

Instance

Shell> chsh

Changing fihanging shell for user1

Password: [del]

New shell [/bin/tcsh]: ### [currently used shell]

[Del]

Shell> chsh-l ### display the/etc/shells file content

/Bin/bash

/Bin/sh

/Bin/ash

/Bin/bsh

/Bin/tcsh

/Bin/csh

Change the current shell. The current shell is set to // bin/bash. Use the chsh command to change the shell setting/bin/csh.

# Chsh

Changing shell for root.

New shell [/bin/bash]:/bin/csh // enter the New shell address

Shell changed.

Use the-s parameter to change the current shell settings

# Chsh-s/bin/csh // change the current setting to/bin/csh

Changing shell for root.

Shell not changed.

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.