[Shell] Common Shells: sh, csh, tcsh, ash, bash

shBourne Shell, developed by Steve Bourne @ AT&TThe standard shell on UNIX based system.The first popular shell.cshDeveloped by Bill Joy.Bill built csh, vi, BSD.tcshAn improved version of csh.Compared with csh, adding Command-line completion.ashLight-weighted ShellCompatible with bash.bashbash is compatible with sh(Bourne Shell).
Difference between bash and sh
bash expands some params, and commandsGNU/Linux
Use commands to exminate available shells:

$ cat /etc/shells/bin/sh/bin/bash/sbin/nologin/usr/bin/sh/usr/bin/bash/usr/sbin/nologin/bin/tcsh/bin/csh

On GNU/Linux, sh is replaced with bash

$ echo $SHELL/bin/bash

SHELL is an environment variable under GNU/Linux, it indicates the path of current shell we use.


关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章