Linux Utilities and Shell Programming
Duration: 3 Days
This three-day course provides a follow-on from the Introduction to Linux course for power users and administrators who wish to learn more of the general purpose Linux utilities, and be able to automate tasks by writing Bourne, Korn and Bash 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.
If you are a student of an accredited academic institution call us for a 25% discount.
Review of shell facilities
- Redirection and Piping of output and errors.
- Command History and command line editing.
- Metacharacters (wild cards).
- Shell Variables and user profile configuration.
- What are regular expressions?
- Commands that use regular expressions.
- Special characters in regular expressions.
- Examples of regular expressions used with the grep utility.
- Utilities for manipulating data, generating reports and much more (gawk, grep, sort, sed, cut, tr).
- Utilities for examining and converting data (dd, tar, mt, od, what, strings).
- Utilities for hunting around (find, which).
- Using cmp, diff and comm for comparing files and directories.
- Compression utilities compress, zip, gzip, bzip2, etc.
- Review of basic vi use.
- Using the more complex and powerful facilities of the vi editor.
- Moving blocks of text.
- Recovering previous deleted lines.
- Placing markers in text.
- Running Linux commands from vi.
- Setting and saving options.
- Using ex commands for rapid repetitive changes.
Bourne, Korn and Bash Shell Programming
- A simple shell program.
- Execution of Scripts.
- Script debugging.
- Run time arguments.
- Input from the keyboard.
- Shell variables and special variables.
- Arithmetic facilities.
- Control and Loop statements (if, for, while until, case, select).
- Functions in scripts.
- Catching interrupts with trap.
- Script organisation.
- (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.
- General best programming practices.
Overview of System Administration
- Pointers to performing administration tasks on Linux, including:- Linux configurations & hardware support.
- System administration functions & procedures.
- How is administration carried out?
- System Administration tools.