Course Overview
This three-day course provides a follow-on from the Introduction to Solaris course for power users and administrators who wish to learn more of the general purpose Solaris/UNIX utilities, and be able to automate tasks by writing shell scripts. This course not only teaches you the utilities and programming skills, but also provides many examples of useful shell scripts. A further important aspect is that you will be able to readily interpret existing scripts.
Prerequisites
Experience of Solaris or UNIX similar to the level covered in our Introduction to Solaris course.
Course Outline
Review of shell facilities
redirection. piping. history. aliases. metacharacters. command line editing.
Regular Expressions
Commands that use regular expressions. Special characters in regular expressions. Examples of regular expressions used with the grep utility.
Solaris utilities
Utilities for manipulating data, generating reports and much more (nawk, grep, sort, sed, cut, tr). Utilities for examining and converting data (dd, tar, mt, od, what, strings). Utilities for hunting around (find, which). UNIX Comparison/Differential commands. Using cmp, diff, diff3, comm for comparing files and directories.
Advanced vi
Using the more complex and powerful facilities of the vi editor. Moving blocks of text. Recovering previous deleted lines. Placing markers in text. Running UNIX commands from vi. Setting and saving options. Using ex commands for rapid repetitive changes. Setting up keyboard macros.
Bourne and Korn Shell Programming
The Bourne shell: A simple shell program. Execution of Scripts. Run time arguments. Input from the keyboard. Shell variables. Integer Arithmetic. Control statements. Loop statements. The case statement. Catching interrupts with trap. The Korn Shell: The additional programming features of the korn shell such as let and select, plus integer arithmetic and other facilities. Practicals include interpretation of existing scripts as well as writing new scripts. Techniques and practical tips for good scripts. Use of absolute & relative paths - passing data between commands - useful special files and directories - labelling your output - options - good programming practice.
The Printer Spooling mechanism
Understanding the printer spooling mechansim. Using the spooling commands. Troubleshooting hung printers.
Overview of System Administration
Sun Workstation Solaris configurations & hardware types. Pointers to performing administration tasks on Solaris, including:- System administration functions & procedures. How is administration carried out? System Administration tools.
Network Resources
Network File System (NFS) Overview - uses & benefits. NFS example. Overview of the network information services NIS, NIS+ and DNS Other major network facilities, e.g. web servers and browsers.