Linux Shell Types Simple Introduction

Source: Internet
Author: User

The shell is actually a program that has a special function, mainly to provide a user interface with the kernel to interoperate. It is located between the user interface and the kernel, the workflow is to receive commands entered by the user and interpreted (converted to mechanical code that the computer can understand), and then the command into the kernel to execute. We usually telnet to the system via SSH and open the shell, and there are some ways to open the shell directly on the graphical interface. The latter is mainly used in Ubuntu systems.


Here are some of the most popular or historically existing shell types, the current popular shell has ash, bash, Ksh, CSH, zsh, and so on, different shells have their own characteristics and use.


Use the following command to see which shell programs are installed on the system.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/6A/wKiom1W3RdPyjjfsAABVqFXQUvc382.jpg "title=" 1.png " alt= "Wkiom1w3rdpyjjfsaabvqfxquvc382.jpg"/>


The current popular

Currently the popular Shell has ash, bash, Ksh, csh, zsh, etc., using different shells because they each have their own characteristics, the following is a simple introduction:

# sh

SH is actually a shortcut.

# Bash

This is the default shell for most Linux systems, and the full name is Bourneagain shell, with 40 commands in total. The included functionality covers almost all of the functionality that the shell has, so a generic shell script specifies that it is the execution path. The first line of the generic shell script is as follows:

#! /bin/bash

Bash also has a feature that can be viewed with help commands.

# Ksh

Ksh has 42 internal commands, which are somewhat restrictive compared to bash. But Ksh is mainly used for UNIX such as Hp-uinx

#/bin/nologin

This generally means that the user cannot log on.

# Dash

Dash is for running scripts, with more efficiency than bash, but with poor interaction performance. Now it's mostly used on Debian and Ubuntu. Its internal commands and parameters are somewhat different from bash, and some scripts written with the Bash command can be faulted.

# tcsh & CSH

Put Tcsh and CSH together because the two SH is actually the same, TCSH is the csh of the enhanced version, and fully compatible with CSH. As the name implies CSH, is actually a C language style of a shell, its internal command has 52, relatively large. Not much is being used at the moment.

# Pdksh

Pdksh is a shell of Oracle itself, primarily used in Oracle database management. This shell is typically used by DBAs. It does not coexist with ksh, and if Ksh is installed in the system, an error is encountered when installing Pdksh.

# zsh

At last, it introduces one of the largest shell:zsh in Linux. It has 84 internal commands and is more complex to use. In general, the shell is not used.

We'll introduce you to the advantages and limitations of using the shell and shell scripts later.


This article is from the "Essence of the" blog, please be sure to keep this source http://simy88.blog.51cto.com/7370552/1679288

Linux Shell Types Simple Introduction

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.