---

Shell scripting for system administrators: the basics

[ Thanks to Linux User &
Developer magazine
for this link. ]

“If we frequently use a sequence of commands, it goes
without saying that it’s a waste of time to constantly retype them
at a command prompt. Scripting is a mechanism that eliminates this
need by automating the command sequence for you. Now a days,
scripting has become an integral part of a system administrator’s
job. Shells are used to accept commands given by the user. We
usually come across different shells. The most commonly used are:

a. C shell (CSH)
b. Korn shell (KSH)
c. Bourne shell (SH)

“Which shell to use is based on our requirements and we can specify
it within our shell script. To find all available shells on your
system, you can type the following command:

# cat /etc/shells”


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis