This tutorial is designed for beginners only and This tutorial explains the basics of
shell programming by showing some examples of shell programs. Its not help or
manual for the shell. While reading this tutorial you can find manual quite useful (
type man bash at $ prompt to see manual pages). Manual contains all necessary
information you need, but it won't have that much examples, which makes idea
more clear. For that reason, this tutorial contains examples rather than all the
features of shell....
In this lesson, you will learn to:
• Define the role and features of the Linux shell
• Use the shell as a command interpreter
• Create userdefined
• Use shell environment variables
• Create shell scripts in Linux
Define the role and features of the Linux shell Use the shell as a command interpreter Create userdefined variables Use shell environment variables
A working knowledge of shell scripting is essential to everyone wishing to become reasonably adept at system
administration, even if they do not anticipate ever having to actually write a script. Consider that as a Linux
machine boots up, it executes the shell scripts in /etc/rc.d to restore the system configuration and set up
services. A detailed understanding of these startup scripts is important for analyzing the behavior of a system,
and possibly modifying it.
Chapter 2 : Building and Running Modules
It's high time now to begin programming. This chapter introduces all the essential concepts about modules and kernel programming. In these few pages, we build and run a complete module. Developing such expertise is an essential foundation for any kind of modularized driver. To avoid throwing in too many concepts at once, this chapter talks only about modules, without referring to any specific device class.