Skip to content
masterclass Buddy

Linux & Shell · Concept

Shell scripts

sh is the standard shell command interpreter. It runs commands from a file, a command string, or standard input.

Last updated

Syntax

sh [ -abCefhimnuvx ] [ -o option ] ... [ +abCefhimnuvx ] [ +o option ] ... [ command_file [ argument ... ]]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • sh -c
  • sh -s
  • command_file
  • command_string

Source: sh(1p) - Linux manual page. Checked 2026-11-03.