När du vill utveckla din kompetens inom Linux Shell Scripting dvs. Din förmåga att automatisera uppgifter inom ett UNIX eller Linux system. Du som systemadministratör eller utvecklare kan genom att utveckla din förmåga undvika fel, spara tid och pengar och kan ersätta repetitivt arbete med shell scripts. Ett sätt att programmera i Linux.
Stor vikt har lagts för att du som kursdeltagare ska utveckla dina färdigheter för att automatisera uppgifter både om du har haft tidigare erfarenhet av programmering eller om detta är en ny uppgift.
Andra kurser inom Linux:
Linux Fundamentals Enterprise Linux Systems Administration Enterprise Linux Network Services Linux Embedded Systems Development Fundamentals
Innehåll i kurs
- Linux Programming
Kursdokumentationen beskriver de senaste versionerna av Red Hat Enterprise Linux , Fedora Core , SUSE Linux Enterprise Server , SUSE Linux
1. SHELL SCRIPTING BASICS
- Shell Scripting
- Example Shell Script
- Shell/Environment Variables
- Key Environment Variables
- General Quoting Rules
- Nesting Commands
- Variables: Arrays
- Positional Parameters
- printf
- Input and Output
- alias
- Functions
- Colors in Scripts
Lab Tasks
- Shell Variables
- Shell Meta-Characters
- Command Substitution
- Aliases
- Bash Login Scripts
- Create "userinfo" and "sysinfo" functions
2. WORKING WITH FILES
- Communication Channels
- File Redirection
- Piping Commands Together
- Doing Math
- Determining Disk Usage
- cron
- crontab Format
- /etc/cron.*/ Directories
- Sending Email with mail
Lab Tasks
- Disk and Filesystem Usage
- Connecting Commands
3. DATA MUNGING
- Regular Expression Overview
- Regular Expressions
- RE Character Classes
- RE Quantifiers
- RE Parenthesis
- Searching Inside Files
- Replacing Text Characters
- The Streaming Editor
- Text Processing with awk
- Text Sorting
- Duplicate Removal Utility
- Extracting Columns of Text
Lab Tasks
- Pattern Matching with Regular Expressions
- Extended Regular Expressions
- Using Regular Expressions With sed
- Create "rmhost" function
- Create "showenv" function
- Parsing Mail Server Logs
- Fixing Incorrect Files
4. BRANCHING AND LOOPING
- Exit Status
- Comparisons with test
- Conditional Statements
- Flow Control: case
- The for Loop
- Flow Control: while and until Loops
- Reading Files with while
- Flow Control: select
Lab Tasks
- Reporting User Statistics
- Monitoring Filesystem Usage
5. SECURITY, WHITESPACE AND OTHER GOTCHAS
- Gotchas: Maximum Command Length
- Gotcha: Whitespace in for Loops
- Gotcha: $IFS
- Gotcha: Printing in .bashrc
- Gotcha: Aliases
Lab Tasks
- Renaming MP3 Files
- Split and Display $PATH
- A tar-based Backup
6. WHERE TO FROM HERE?
- Waterfall Development
- Iterative Development
- Getting Help with man and info
- $MANPATH, whatis and apropos
- Help from Commands and Documentation
Lab Tasks
- Automated Virtual Host Provisioning
Kurs intressant för
Produkt systemutvecklare och konsulter som snabbt vill komma in på området Embedded Linux Development.
Produkt och systemutvecklare och management som ska arbeta inom utvecklings eller System Administration inom följande områden.
- Industriteknik Systemutveckling
- El och Energi Systemutveckling
- Kommunikationssystem Systemutveckling
- Systemutveckling / kommunikationslösningar försvarssystem
Kursdokumentationen är på engelska!
Föreläsare
- Tomasz Staszewski, Unipipe
Förkunskaper
Kunskap om UNIX-baserade system och vana med UNIX och Linux kommandon
Kursens mål
Att lära dig att skriva shell scripts för att förenkla och automatisera ditt arbete med Linux.