The shell under Linux

Source: Internet
Author: User

------------------------------

One of the shell versions used by Linux is the [Bourne Again Shell] abbreviated to bash. This shell is an enhanced version of the Bourne shell, developed under the GNU architecture.


The first popular Shell[bourne Shell]sh

Later the popular Shell C Shell is abbreviated CSH.

where C Shell wanted to be hot, because Linux was written in C, when many programmers used C to develop software.


Check the/etc/shells file for the shell that you can use under your Linux system. (Take my CentOS 6.5 example).

[Email protected] ~]# Cat/etc/shells

/bin/sh

/bin/bash

/sbin/nologin

/bin/dash

[Email protected] ~]#


and the bash shell is the default shell.

The/sbin/nologin inside can make it impossible for users to log on to the host with other services.


When you log in to Linux, the system gives a shell to let the lander work,

Check in/etc/paswd, System account bin, daemon, etc. use/sbin/nologin.

[Email protected] ~]# CAT/ETC/PASSWD

Root:x:0:0:root:/root:/bin/bash

Bin:x:1:1:bin:/bin:/sbin/nologin

Daemon:x:2:2:daemon:/sbin:/sbin/nologin

Adm:x:3:4:adm:/var/adm:/sbin/nologin

...


~/.bash_history records the commands that were run before the previous login.



The shell under Linux

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.