Curso Linux Foundamental
32 horasVisão Geral
Este Curso Linux Foundamental, em Sistema Operacional Linux e Programação Bash Shell apresenta ao delegado os principais conceitos do Sistema Operacional LINUX. Os comandos mais comumente usados são descritos em detalhes, assim como o curinga da linha de comando e os recursos de redirecionamento. Os mecanismos pelos quais um usuário adquire um ambiente de login são discutidos e os principais recursos do shell Bash são apresentados.
Este Curso Linux Foundamental, foi elaborado para proporcionar aos participantes experiência prática no desenvolvimento e escrita de scripts shell. A maioria dos comandos internos do shell Bash são introduzidos junto com as principais estruturas de controle do programa. Este curso não é adequado para programadores C shell.
Da mesma forma, o curso tem como objetivo seguir de perto o currículo oficial do Linux Professional Institute (LPI) para certificação.
Exercícios e exemplos são usados ao longo do curso para proporcionar experiência prática com as técnicas abordadas.
Objetivo
Fornecer as habilidades necessárias para trabalhar produtivamente em um ambiente LINUX para desenvolver e personalizar programas shell.
Publico Alvo
- Programadores,
- administradores e pessoal de suporte que precisam entender o sistema operacional LINUX, shellscripts existentes, automatizar procedimentos e escrever seus próprios utilitários.
Pre-Requisitos
Não há pré-requisitos formais para este curso de treinamento de Fundamentos do Linux, embora seja necessária uma compreensão e exposição à tecnologia da informação e uma compreensão dos sistemas operacionais.
Materiais
Inglês/Português/Lab PráticoConteúdo Programatico
INTRODUCTION TO THE LINUX OPERATING SYSTEM
- A brief history of UNIX / Linux
- The UNIX / Linux kernel
- The UNIX / Linux file system structure
- File and directory management commands
- Absolute vs Relative Pathnames
- Further basic commands
- Exercise: Navigating the file system
BASIC COMMANDS
- Command line syntax
- Basic file handling commands
- Basic Directory handling commands
- Filename wildcard characters
- Using commands with logical AND and OR
- Sequential command execution
- Exercise: Manipulating files and directories
REDIRECTION AND PIPES
- Input and Output redirection
- Redirecting errors
- Piping commands
- Exercise: Using redirection and pipe facilities
INTRODUCTION TO THE VI/VIM EDITOR
- Overview of the vi/Vim editor
- The language of vi
- Undoing and Redoing changes
- Input Mode and Last Line Mode
- Further vi functions
- Executing commands within vi / Vim
- Customising the vi / Vim Environment
- Getting Help
- Exercises: Using the vi editor
SEARCHING AND REPLACING TEXT
- Searching and replacing text using the vi/Vim editor
- Using regular expressions (regex)
- Using sed for search and replace
- Searching for text with grep,egrep and fgrep
- Exercises: Searching and Replacing Text
RECALLING AND EDITING COMMANDS
- Overview
- The bash shell
- The korn shell
- Exercises: Recall and Edit Commands
FILE PERMISSIONS AND ACCESS CONTROL
- Users and user groups
- File access permissions
- Changing file attributes
- Switching users and user groups
- Linking files
- Exercise: Setting and access permissions
FILTERING AND FORMATTING TEXT
- Overview
- The paste command
- The cut command
- An introduction to awk
- The nl command
- Exercises: Filtering Text
PROCESSES
- What is a process?
- Monitoring processes
- Killing processes
- Background processes
- Job Control
- Grouping commands
- Exercise: Monitoring and controlling processes
THE USER ENVIRONMENT
- Customising the .profile or .bash_profile
- Customising the .kshrc or .bashrc
- Exercise: Setting up an environment
MORE BASIC COMMANDS
- The find command
- Using xargs command
- The locate command
- The df command
- The cut command
- The sort command
- Finding duplicate content
- Number sequencing
- Exercise: More Basic Commands
UNIX COMMAND REVIEW
- Basic Unix commands
- General commands
- File and directory handling commands
- Filename generation characters and regular expressions (regex)
- I/O Redirection features
- Other commands
GETTING STARTED
- What is a shell script?
- Development guidelines
- Creating and editing shell scripts
- Naming and storing shell scripts
- Executing shell scripts
- Exercise: Write a simple shell script
USING VARIABLES
- Environment variables
- Local variables
- Assigning values to variables
- Assessing variable values
- Using quotes
- Delimiting variable names
- Echo control sequences
- Exercise: Add variables to a script
INTEGER ARITHMETIC
- Using the expr command
- Using the (( )) notation
- Exercise: Add integer arithmetic to a shell script
HANDLING RUN TIME DATA
- The read command
- Command line arguments
- Exercise: Writing a generic shell script
- Exercise: Writing an interactive shell script
CONDITIONAL EXECUTION
- The if statement
- The test command
- Exercise: Adding validation to previous scripts
ADDITIONAL KORN,BASH & POSIX SYNTAX
- Other test notations
- Default and substitute variables
- Exit status codes
- Exercise
LOOP CONSTRUCTS
- The while loop
- The until loop
- The for loop
- The while true and until false loops
- Loop control commands
- Exercise: Enhancing the previously written scripts
- Exercise: Writing a script to copy files using a 'for' loop
- Exercise: Writing a script to generate numbers with the 'while' loop
MULTI-BRANCH DECISIONS
- The case statement
- Menu driven applications
- Exercise: Developing and writing a menu system
FUNCTIONS
- What is a function?
- Syntax
- Examples
- Exercise: Add a function to a script
INTERRUPT HANDLING
- Interrupt signals
- Trapping interrupts
- Exercise: Adding traps to the menu script
ADDITIONAL FEATURES AND FACILITIES
- The exec commands
- The includes notation
- More about loops
- Arrays
- Here Documents
- Exercise: Create a here script