Description #
Sh is the original Unix shell developed by Stephen Bourne, forming the basis for many modern shells and scripting languages.
History #
Created in 1977 as part of the Seventh Edition Unix, sh introduced scripting constructs and control flow for Unix command processing.
Hello World Code #
echo "Hello, World!"
How to Run #
Option 1: Online
Try Bourne Shell Online (limited)
Option 2: Local
Run scripts with sh:
sh script.sh
Key Concepts #
- Original Unix shell
- Simple scripting language
- Supports variables, control flow
- Command execution and redirection
- Basis for POSIX shell standard
- Influenced Bash, Dash, Ash, etc.
- No advanced features like arrays
- Used for scripting and automation
- Compatible across Unix-like systems
- Lightweight and fast
Try It Online #
Fun Facts #
- Many modern shells emulate or extend sh features.
- It lacks many conveniences found in Bash or Zsh.
- Used widely in system startup scripts.
- Sh scripts are highly portable.
- Bourne Shell syntax remains a core part of shell scripting.