HP-UX Essentials and Shell Programming Course Summary



Similar documents
Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

Linux System Administration on Red Hat

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer

Unix Scripts and Job Scheduling

A Crash Course on UNIX

Hands-On UNIX Exercise:

USEFUL UNIX COMMANDS

Command Line - Part 1

Fundamentals of UNIX Lab Networking Commands (Estimated time: 45 min.)

Thirty Useful Unix Commands

AN INTRODUCTION TO UNIX

grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print

Bash Guide for Beginners

Red Hat System Administration 1(RH124) is Designed for IT Professionals who are new to Linux.

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, Introduction 1. 2 Invoking Shell Scripts 2

Introduction to AIX 6L System Administration Course Summary

UNIX / Linux commands Basic level. Magali COTTEVIEILLE - September 2009

Linux System Administration. System Administration Tasks

OPERATING SYSTEM SERVICES

LSN 10 Linux Overview

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley

Tutorial 0A Programming on the command line

Red Hat Enterprise Linux (RHEL 6) Courses

Training on Linux System Administration, LPI Certification Level 1

Red Hat Certifications: Red Hat Certified System Administrator (RHCSA)

Microsoft Windows PowerShell v2 For Administrators

Unix Sampler. PEOPLE whoami id who

Oracle Database: SQL and PL/SQL Fundamentals

The Linux Operating System and Linux-Related Issues

LECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics:

MySQL for Beginners Ed 3

CS Unix Tools & Scripting Lecture 9 Shell Scripting

Unix Guide. Logo Reproduction. School of Computing & Information Systems. Colours red and black on white backgroun

An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)

CS10110 Introduction to personal computer equipment

PROGRAMMING FOR BIOLOGISTS. BIOL 6297 Monday, Wednesday 10 am -12 pm

A UNIX/Linux in a nutshell

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)

An Introduction to the Linux Command Shell For Beginners

Oracle Database: SQL and PL/SQL Fundamentals NEW

Command Line Crash Course For Unix

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003

CLC Server Command Line Tools USER MANUAL

Incremental Backup Script. Jason Healy, Director of Networks and Systems

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

How to test and debug an ASP.NET application

CS3600 SYSTEMS AND NETWORKS

Advanced Bash Scripting. Joshua Malone

CS420: Operating Systems OS Services & System Calls

Bash shell programming Part II Control statements

CS 103 Lab Linux and Virtual Machines

Introduction to Shell Programming

Overview. Remote access and file transfer. SSH clients by platform. Logging in remotely

Using Process Monitor

Oracle Database: SQL and PL/SQL Fundamentals NEW

RHCSA 7RHCE Red Haf Linux Certification Practice

BASH Scripting. A bash script may consist of nothing but a series of command lines, e.g. The following helloworld.sh script simply does an echo.

Command-Line Operations : The Shell. Don't fear the command line...

Professional. SlickEdif. John Hurst IC..T...L. i 1 8 О 7» \ WILEY \ Wiley Publishing, Inc.

Introduction to Shell Scripting

DiskPulse DISK CHANGE MONITOR

Computer Engineering

The Linux Operating System

Sophos Anti-Virus for Linux configuration guide. Product version: 9

ICS 351: Today's plan

This presentation explains how to monitor memory consumption of DataStage processes during run time.

WS_FTP Professional 12

MobaXTerm: A good gnome-terminal like tabbed SSH client for Windows / Windows Putty Tabs Alternative

Open Source Computational Fluid Dynamics

Sophos Anti-Virus for Linux user manual

Attix5 Pro Server Edition

Beginners Shell Scripting for Batch Jobs

Oracle Database: SQL and PL/SQL Fundamentals

User's Manual. Intego VirusBarrier Server 2 / VirusBarrier Mail Gateway 2 User's Manual Page 1

Windows PowerShell Essentials

Operating System Structures

Windows Command Line Administration Instant Reference

Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script

Linux Crontab: 15 Awesome Cron Job Examples

PHP Debugging. Draft: March 19, Christopher Vickery

Sophos Anti-Virus for Linux configuration guide. Product version: 9

RECOVER ( 8 ) Maintenance Procedures RECOVER ( 8 )

Using Secure4Audit in an IRIX 6.5 Environment

Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0

INASP: Effective Network Management Workshops

NNMi120 Network Node Manager i Software 9.x Essentials

SAS 9.4 In-Database Products

TIBCO Fulfillment Provisioning Session Layer for FTP Installation

CHAPTER 15: Operating Systems: An Overview

Database Programming with PL/SQL: Learning Objectives

Tandem Systems, Ltd. WinAgents HyperConf. User s Guide

University of Toronto

Configure Cisco Emergency Responder Disaster Recovery System

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

A candidate following a programme of learning leading to this unit will be able to:

How to Backup XenServer VM with VirtualIQ

fåíéêåéí=péêîéê=^çãáåáëíê~íçêûë=dìáçé

Operating System Components

Transcription:

Contact Us: (616) 875-4060 HP-UX Essentials and Shell Programming Course Summary Length: 5 Days Prerequisite: Basic computer skills Recommendation Statement: Student should be able to use a computer monitor, keyboard, mouse. Student needs to be able to input commands and control characters from a keyboard. Course Description: For those new to HP-UX, this is the first course you will take. The course starts at the beginner level and works into intermediate and advanced HP-UX commands and utilities. The student is introduced to the HP-UX Korn shell, the command line and command syntax. Although you will be exposed to the various windowing platforms available in HP-UX, this course teaches UNIX at the command line level to develop a thorough understanding of the HP-UX operating environment. The student learns how to navigate the HP-UX file systems and how to work with files, directories and permissions. The student will learn how to use the HP-UX editors ex and vi. Once the student is comfortable with basic HP-UX commands, they ll move onto advanced power tools as well as how to customize the POSIX Korn shell. The student will learn how to combine shell variables, shell built-ins and UNIX power tools to build complex POSIX (Korn) shell scripts. The classroom labs are run in a real-world HP-UX environment, are structured to allow you to learn by doing, and are developed to simulate real world situations. The hands-on labs progressively build your HP-UX knowledge and command skills in a clear and concise manner. Working in a controlled UNIX classroom environment with an expert instructor, you will learn HP-UX concepts and commands. You will receive professional tips and techniques that will help you build your HP-UX confidence and skills. Upon completion of this course, you should be able to: Log in and log out of HP-UX Use the Common Desktop Environment tools (CDE) and GNome window system Compose command-line strings to perform functions Navigate the directory tree Manipulate text files Create files and directories Backup and restore user files and directories Change permissions of files and directories Use the vi text editor Identify and modify initialization files Employ shell features to streamline command execution Use basic network commands Use commands to search directories and files List active user processes and selectively kill user processes Customize the shell environment Use UNIX network utilities Copyright 2010 UnixEd All rights Reserved

Use UNIX power tools to process data and files Interpret and write complex shell scripts Read, write, and debug scripts Use local and environmental variables and shell metacharacters in scripts Use regular expression characters with the grep, sed, and awk utilities Write sed scripts to perform non-interactive editing tasks Write awk scripts to manipulate individual fields within a record and to write reports based upon an input file Use the exit status of a command to determine if the command succeeded or failed Access and process command-line arguments passed into a script Develop messages to display when a script is used incorrectly Use flow control constructs, such as branching and looping Perform string manipulation and integer arithmetic on shell variables

HP-UX Essentials and Shell Programming Detailed Course Outline Introduction to the UNIX Operating System Describe the HP-UX Operating Environment and OS releases UNIX standardization an overview of standards in the UNIX community Describe Unix shells (which shells are available, compare the common Unix shells, how to choose a shell) Describe the Unix kernel Establishing Communication Logging in and starting a Unix session Window environments available to the UNIX user Understanding the UNIX command syntax Using the UNIX "help" facility: manual pages Using emulation programs to access the system (ie. Putty / X-Windows / Telnet / CDE Common Desktop Environment / Gnome Desktop ) Setting your terminal environment (stty) Executing commands from the command line; UNIX Command syntax Using the UNIX "help" facility: manual pages Introduction to the Filing System Examining UNIX files and directories Describe the UNIX file system and directory structure Navigating the UNIX directory hierarchy Understand the difference between full and relative paths Understanding the current and parent directories Understanding the differences between a Windows/DOS based filesystem and a UNIX JFS Differences between Windows (DOS) files and Unix files Describe mount points mounting and unmounting filesystems Describe hard and symbolic links Describe home directories Disk space and checking the status of disks, filesystems, and directories (ie. du and df commands) File Management Creating directories Copying files and directories Moving and renaming files and directories Removing files and directories Using shell metacharacters Locating files by name, owner, type and other parameters using the find command UNIX Permissions Understanding permissions File permissions Directory permissions Change permissions with symbolic mode Change permissions with absolute (octal) mode Determine and set the umask value Redirection Filters and Pipes Exploring standard input, standard output, and standard error Using filters Using pipes

Using the vi Editor Understand the UNIX editors Understand the VI modes Creating/viewing/manipulating/saving/deleting files using the vi editor Using a.exrc file Introduction to shell scripts Creating simple shell scripts Choosing a Shells UNIX Shells and Variables Understanding the UNIX shells Displaying the default variables Creating/Removing user variables stty to set terminal types (backspace, etc.) Introduction to the POSIX shell Shells: Bourne, Korn, C, bash Startup Scripts (.profile,.kshrc) Using ENV for automatic environment tailoring Use Bourne and Korn shell variables Assign values to shell variables Display the value of shell variables Make variables available to subprocesses using the export statement Display the value of environment variables Unset shell and environment variables Customize the user environment using the.profile file Perform arithmetic operations Create and use aliases Display aliases and the values assigned to them Display the built-in aliases Customize the Bourne and Korn shell environments Use the tilde expansion and command substitution features of the Korn shell Using Aliases and Functions Introducing the alias concept Using functions Making your aliases and functions permanent Removing aliases and functions Command Editing and Command History Enabling command editing in the Korn shell Using history to recall commands The command history file System Status and Command Information Displaying system information and user status Determining command locations Multitasking Capabilities Introduction to multitasking in the UNIX environment Managing jobs and background processes Using the process table to manage processes Introducing delayed and detached jobs Display system processes Use processes and process identifiers (PIDs)

Identify parent and child processes Terminate processes using the kill command Use the pgrep and pkill commands Advanced File Management Creating links Processing files with "awk", "tr", and "sed" Use awk/nawk commands from the command line Write awk programs to generate data reports from text files Write awk programs to generate numeric and text reports from text files Command line data processing Using awk to display file contents and process data Formatting files with the tr command Using UNIX filters to filter, sort and restructure data Use awk to scan text files or standard input to display specific data, change data format, and add text to existing data Archiving User Data Managing file space Archiving files and directories Compressing files Use the tar utility to store files Backup files with the tar and compress commands Use compression tools to save storage space (compress, gzip, etc) Printing lp, lpstat, cancel Remote Connections Connect remotely using telnet and ssh Remotely access a system using rlogin or ssh Transfer files with ftp and sftp (using the command line)

Shell Scripts Writing and Running Shell Scripts Command Substitution Shell Variables and Variable Substitution Shell Environment Variables Comments Getting User Input Read The for Loop and if Statement Exit Status or Return Code The test Command The case Statement Simple Conditionals The set Command Arithmetic with shell variables Remote Connections Connect remotely using telnet and ssh Transfer files with ftp and sftp Advanced File Management Creating links Advanced Shell Topics Day 3 Processing files with "awk", "tr", and "sed" Use awk/nawk commands from the command line Write awk programs to generate data reports from text files Write awk programs to generate numeric and text reports from text files Regular Expressions and the grep Command Use and describe regular expressions Describe the grep command Use the grep command to find patterns in a file Use the regular expression characters with the grep command Metacharacters The grep command Command line database processing Using awk to display file contents and process data Formatting files with the tr command Using UNIX filters to filter, sort and restructure data Use awk to scan text files or standard input to display specific data, change data format, and add text to existing data Stream Editing with 'sed' Use sed to perform noninteractive editing tasks Substituting text Deleting and printing lines Reading and writing files Multiple 'sed' editor functions Use regular expression characters with the sed command

Writing and Debugging Scripts Creating a shell script Put comments in a script Change permissions on a script Execute a script Debug a script String Manipulation String Comparison String Relations Concatenation Substring Manipulations Wildcards and Pattern Matching Conditionals Use the exit status of a command as conditional control Use the "if" statement to test a condition Pass values using command-line arguments (positional parameters) into a script Create USAGE messages Place parameters on the command line Use conditional if, then, elif, else, and fi constructs Use exit, let, and test statements ([[ ]], " ") Apply the &&,, and! Boolean logic operators Use the case statement Interactive Scripts Use the print and echo commands to display text Use the read command to interactively assign data to a shell variable Read user input into one or more variables, using one read statement Use special characters, with print and echo, to make the displayed text more user friendly Create a "here" document Use file descriptors to read from and write to multiple files Loops Write scripts that use for, while, and until loops Write a script using the select statement Describe when to use loops within a script Generate argument lists using command, variable, and file-name substitution Advanced Variables, Parameters, and Argument Lists Declare strings, integers, and array variables Manipulate string variables Change the values of the positional parameters using the set statement within a script Pass values using command-line arguments (positional parameters) into a script Declare korn shell string and array variables Setting and retrieving arrays Set default values for parameters Use the Korn shell built-in let, print, set, and typeset statements Reading user input Positional parameters Creating positional parameters Conditional substitution Working with arithmetic operators and data Functions

Create user-defined functions in a shell script Create, invoke, and display functions from the command line Pass arguments into a function Call functions from special (function) files that are saved in one or more function directories Describe where functions are available for use Controlling Script Behavior Manage the use of temporary files Write scripts using the setuid bit Use the crontab command Scheduling Execution sleep date cron and crontab Traps Describe how the trap statement works Include trap statements in a script Use the trap statement to catch signals and handle errors