|
Khóa học Linux Sell Scripting |
|
|
|
- Khóa học tập trung vào việc tự động hóa các tiến trình, nhiệm vụ trong linux, unix.
Yêu cầu: Học viên cần nắm rõ chế độ, câu lệnh command-line.
- Hỗ trợ Distributions:
- Red Hat Enterprise Linux 5
- Fedora Core 6
- SUSE Linux Enterprise Server 10
- SUSE Linux 10.1
- Thời gian: 20h
- Nội dung chi tiết:
-
- 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
- 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
- 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
- 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
- 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
- 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
|