Curso Linux Shell Programming LSP

  • Linux & Suse

Curso Linux Shell Programming LSP

16 horas
Visão Geral

Este Curso Linux Shell Programming LSP é projetado para dar aos delegados experiência prática no desenvolvimento e escrita de scripts shell LINUX. A maioria dos comandos internos do shell são apresentados junto com as principais estruturas de controle do programa.

Objetivo

Este Curso Linux Shell Programming LSP Fornecer as habilidades necessárias para desenvolver e personalizar programas shell.

Os participantes aprenderá e adquirirá as seguintes habilidades:

  • Escrevendo scripts simples para aprimorar a saída de comandos básicos
  • Usando os vários mecanismos de cotações de shell apropriadamente
  • Manipulando variáveis ​​de shell e variáveis ​​definidas pelo usuário em scripts
  • Implementando facilidades de execução condicional
  • Usando as construções de loop integradas do shell quando apropriado
  • Escrevendo scripts para interceptar interrupções do usuário
  • Funções definidas pelo usuário
  • Desenvolvendo scripts de shell orientados a menus
Publico Alvo

Programadores, administradores e pessoal de suporte que precisam entender scripts de shell existentes, automatizar procedimentos e escrever seus próprios utilitários.

Pre-Requisitos
  • Este Curso Linux Shell Programming LSP pressupõe conhecimento do sistema operacional LINUX  Alguma experiência em programação também pode ser vantajosa.
Materiais
Inglês + Exercícios + Lab Pratico
Conteúdo Programatico

INTRODUCTION

  1. Administration and Course Materials
  2. Course Structure and Agenda
  3. Delegate and Trainer Introductions

LINUX COMMAND REVIEW

  1. Basic Linux commands
  2. General commands
  3. File and directory handling commands
  4. Filename generation characters and regular expressions (regex)
  5. I/O Redirection features
  6. Other commands

GETTING STARTED

  1. What is a shell script?
  2. Development guidelines
  3. Creating and editing shell scripts
  4. Naming and storing shell scripts
  5. Executing shell scripts
  6. Exercise: Write a simple shell script

USING VARIABLES

  1. Environment variables
  2. Local variables
  3. Assigning values to variables
  4. Assessing variable values
  5. Using quotes
  6. Delimiting variable names
  7. Echo control sequences
  8. Exercise: Add variables to a script

INTEGER ARITHMETIC

  1. Using the expr command
  2. Using the (( )) notation
  3. Exercise: Add integer arithmetic to a shell script

HANDLING RUN TIME DATA

  1. The read command
  2. Command line arguments
  3. Exercise: Writing a generic shell script
  4. Exercise: Writing an interactive shell script

CONDITIONAL EXECUTION

  1. The if statement
  2. The test command
  3. Exercise: Adding validation to previous scripts

ADDITIONAL KORN, BASH & POSIX SYNTAX

  1. Other test notations
  2. Default and substitute variables
  3. Exit status codes
  4. Exercise

LOOP CONSTRUCTS

  1. The while loop
  2. The until loop
  3. The for loop
  4. The while true and until false loops
  5. Loop control commands
  6. Exercise: Enhancing the previously written scripts
  7. Exercise: Writing a script to copy files using a 'for' loop
  8. Exercise: Writing a script to generate numbers with the 'while' loop

MULTI-BRANCH DECISIONS

  1. The case statement
  2. Menu driven applications
  3. Exercise: Developing and writing a menu system

FUNCTIONS

  1. What is a function?
  2. Syntax
  3. Examples
  4. Exercise: Add a function to a script

INTERRUPT HANDLING

  1. Interrupt signals
  2. Trapping interrupts
  3. Exercise: Adding traps to the menu script

ADDITIONAL FEATURES AND FACILITIES

  1. The exec commands
  2. The includes notation
  3. More about loops
  4. Arrays
  5. Here Documents
  6. Exercise: Create a here script
TENHO INTERESSE

Cursos Relacionados

Curso Linux Suse SLE200 Transitioning Enterprise 15

8 Horas

Curso Enterprise Server Deployment SLE211v15

16 horas

Curso SUSE Enterprise Server 15 Administration SLE201v15

32 Horas

Curso Linux Suse Enterprise Server 15 Adm Advanced SLE301v15

32 horas

Curso Linux Suse SLES for SAP Applications HA Deployment and Configuration

24 Horas

Curso Suse Linux Protegendo Enterprise Server 12 SLE341

24 Horas

Curso Red Hat System Administration I RH124

32 Horas