What Is Bourne Shell?

What is bourne shell?

Bourne Shell is the oldest shell. It was written by Stephen Bourne at Bell Laboratories. The Bourne Shell has been the default shell for many UNIX like operating system and root users. It has been a de facto standard in the industry. The Bourne Shell has neither the interactive features, nor the complex programming constructs, of the C and Korn shells.


Bourne shell is located at /bin/sh

A modified and advanced version may be installed in modern UNIX like operating systems. It may be a symbolic link more feature-rich shell than the Bourne shell.

It is still used to write system initialization scripts located in /etc/rc.d/ or /usr/local/etc/rc.d or /etc/init.d/ scripts.

A Typical Example of /bin/sh Script From FreeBSD Operating System

# $FreeBSD: src/etc/rc.d/cron,v 2009/04/15 03:14:26 kensmith Exp $
# PROVIDE: cron
# REQUIRE: LOGIN cleanvar
# BEFORE: securelevel
# KEYWORD: shutdown
. /etc/rc.subr
load_rc_config $name
if checkyesno cron_dst
	cron_flags="$cron_flags -s"
run_rc_command "$1"

Bourne Shell Features

  1. Command history feature : No (the ability to store commands in a buffer, then modified and reused)
  2. Line editing feature : No ( the ability to modify the current or previous command lines with a text editor)
  3. Restricted shells : No ( security feature providing a controlled environment with limited capabilities)

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • jean michael tagui Jan 23, 2012 @ 12:32

    That is what i was looking for almost a week in the net,bourne shell, thanks to make it very easier to understand,you are the best.once more thanks.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum