How Linux SuSE View and modify the shell

Source: Internet
Author: User

There are many kinds of shells in Linux, such as KSH,BASH,CSH and so on.

What kind of shell is used by the current user, we can view it in/etc/passwd

linux-37:/# cat/etc/passwd |grep-i smsweb1--smsweb1 for the user name you want to view

Smsweb1:x:111:201::/home/smsweb1:/bin/bash

You can see that the SMSWEB1 user defaults to bash.

Change, we can use the CHSH command.

Smsweb1@linux-37:~> Chsh

Changing login shell for SMSWEB1.

Password:

Enter the new value, or press return for the default.

Login Shell [/bin/bash]:/bin/ksh

Shell changed.

--View the available shells

Smsweb1@linux-37:~> chsh-l

This paper url:http://www.bianceng.cn/os/linux/201410/45604.htm

/bin/ash

/bin/bash

/bin/bash1

/bin/csh

/bin/false

/bin/ksh

/bin/sh

/bin/tcsh

/bin/true

/bin/zsh

/usr/bin/csh

/usr/bin/ksh

/usr/bin/passwd

/usr/bin/bash

/usr/bin/rbash

/usr/bin/tcsh

/usr/bin/zsh

This article is from "Richard's notes-accumulate micro Cheng" blog, please be sure to keep this source http://zxf261.blog.51cto.com/701797/735650

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.