shell script

Command-line program file

A shell script is a file containing a sequence of commands for a computer's command-line interpreter to execute.

Shell scripts automate repetitive tasks, configure systems, or chain together operations: I wrote a shell script to back up my files every night.

The term comes from the "shell"—the program that interprets commands typed at a terminal.

syntax

bash

Forceful striking blow

  • shVoiceless fricative digraph
  • shebangEverything, in casual speech
  • variablesChangeable elements in equations

loop · conditional · if · else · case · function · array · string · return · source

execution

terminal

At the endpoint

interpreter · executable · binary · stdin · stdout · path · argument · parameter · option · flag

commands

grep

Text pattern search utility

  • findLocate through effort
  • cutSeverance or reduction
  • sortMethod of ordering

head · tail · cat · echo · test · chmod · touch · cd

development

debugging

Error removal from programs

error handling · comments · documentation · portability · version control · modular · maintainability · best practices · dry run

automation

batch job

Scheduled unattended computer task

  • workflowSequential task progression
  • pipelineLong-distance fluid transport tube
  • daemonSupernatural attendant entity

background process · at · startup · bootstrap · deployment · provisioning · orchestration

Opposites
compilation method

shell scriptmachine code

CPU-executable binary instructions

executable · object code · assembly language · bytecode · firmware

abstraction level

shell scriptmachine language

Binary instructions for processors

device driver · microcode · assembly language · firmware

interface type

shell scriptgraphical interface

Visual computer interaction system

graphical user interface · desktop application · manual operation · WYSIWYG editor

Family

shell, script, shells, shellfish, shelled, shelling, scripts, scripted, unshelled

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Rated G