-
Book Overview & Buying
-
Table Of Contents
Linux Essentials - Second Edition
By :

Shell scripts are plain-text files, so you create them in text editors such as vi, nano, or pico, as described in Chapter 10, “Editing Files.” A shell script begins with a line that identifies the shell that’s used to run it, such as the following:
#!/bin/bash

The first two characters are a special code that tells the Linux kernel that this is a script and to use the rest of the line as a pathname to the program that’s to interpret the script. (This line is sometimes called the shebang, hashbang, hashpling, or pound bang line.) Shell scripting languages use a hash mark (#) as a comment character, so the script utility ignores this line, although the kernel doesn’t. On most systems, /bin/sh is a symbolic link that points to /bin/bash, but it can point to another shell. Specifying the script as using /bin/sh guarantees that any Linux system will have a shell program to run the script. However, if the script uses any features...
Change the font size
Change margin width
Change background colour