Prev | Current Page 332 | Next

Michael McCallister

"openSUSE Linux Unleashed"


In this chapter, we will focus on understanding the shell as
a programming language. Most of the shells included in
openSUSE Linux allow you to string commands together in
an editor and save them as a script. Knowing the shell??™s
syntax, you can define variables, assign values, create functions,
and evaluate different results??”most everything a
???real??? programming language such as C, Java, or C++ can
do. Many of the standard shell commands are really just
shell scripts. Perhaps your script will one day find itself in
common usage, too.
CHAPTER 8 Shaking Hands with Your Shell 140
What Is the Shell?
Before you can start writing shell scripts, it??™s a good idea to first have a clear idea as to
what the shell is, and what it can and can??™t do. The shell is a term that is thrown around
a lot in the Unix world, and is not often clearly defined.
The core of the Linux operating system is the kernel. All of the program processing,
device handling, and memory control happens within the Linux kernel. The kernel is off
in its own world running the Linux system.


Pages:
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
news news news news news