What exactly is shell scripting?
And what is Bash, Korn, and Expect? I use a few commands in a Linux terminal, is that shell scripting too? Again I am confused what exactly is shell scripting?
Your terminal runs a shell , probably bash - korn, csh and others are similar shells with different features and syntax.
While you probably use it mostly to run commands, most shells are an interpreter for command language defined by that shell. Programs in that language is called a shell script. See this howto for an overview of shell scripting in bash.
Shell scripting is the process of creating a file containing several shell commands (i.e. ls
, cd
, grep
, etc) than can then be executed.
bash and korn are both shells - they allow you to interface with the computer through a command line, rather than running programs by clicking on icons.
The purpose of shell scripting is to automate repetitive tasks, such as setting up an environment to launch a program, or checking to see if logfiles have changed, or archiving a directory (or set of directories) or any other number of tasks.
Check this out for more info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With