Vision:
To become a world-class IT training organization in Vietnam
Mission:
Cooperating with partners to develop human resources effectively for Vietnamese ICT development .
Implementation:
By implementing modern education technology, we offer the best quality, most practical and modern courses to customers with value for money.
Khách h ng
của ALLIANT Corp


SHELL PROGRAMMING FOR SYSTEM ADMINISTRATORS (SA-245)

1. Giới thiệu

Khóa học Shell Programming for System Administrators cung cấp cho học viên những kỹ năng để đọc, viết, và gỡ lỗi tập lệnh đại cương UNIX. Khóa học bắt đầu bằng cách mô tả tập lệnh đơn giản để tự động thực thi lệnh thường xuyên và tiếp tục theo mô tả logic có điều kiện, tương tác người dùng, vòng, danh sách, bẫy, và chức năng. Khóa học này dành cho quản trị viên hệ thống những người đã nắm những điều cơ bản của một Môi trường Điều hành UNIX (OE) như Môi trường Điều hành Solaris hoặc Linux và người muốn đọc và hiểu các tập lệnh khởi động khác nhau và viết tập lệnh riêng của họ để tự động hoá nhiệm vụ ngày qua ngày của họ. Khóa học này khai thác một cách chi tiết các ngôn ngữ tập lệnh đại cương Bourne và Korn.

2. Đối tượng

Học viên có lợi ích từ khóa học này là các nhà quản trị hệ thống, nhà lập trình hệ thống, nhà điều hành UNIX, nhà quản trị cơ sở dữ liệu, và nhà quản trị Web.

3. Các yêu cầu trước khi tham gia khóa học

Để hoàn thành tốt khóa học này, học viên cần có thể:

  • Sử dụng các yêu cầu UNIX cơ bản, như rm, cp, man, more, mkdir, ps, and chmod
  • Tạo và sửa các file văn bản trong vi hoặc một dụng cụ sửa văn bản.

Chú ý: Các kỹ năng này được đòi hỏi một cách điển hình thông qua việc tham gia vào các khóa học SA-119 và SA-239.

4. Kỹ năng đạt được

Sau khi hoàn thành khóa học này, học viên có khả năng:

  • Viết tập lệnh quản trị thế giới thực.
  • Sử dụng thường xuyên biểu hiện với grep, sed, và nawk
  • Thao tác tập tin văn bản với grep, sed, và nawk
  • Viết tập lệnh báo cáo
  • Duy trì các tập lệnh hiện tại.
  • Sử dụng dòng điều khiển xây dựng, như là phân nhánh và móc nối
  • Tùy biến tập tin khởi tạo vỏ toàn hệ thống
  • Phát triển và gỡ lỗi tập lệnh
  • Sử dụng các biến địa phương và môi trường và các siêu kí tự vỏ trong tập lệnh
  • Sử dụng các tình trạng xuất cảnh của một lệnh để xác định xem lệnh thành công hay thất bại
  • Phát triển các tập lệnh tương tác
  • Viết một tập lệnh có sử dụng chức năng
  • Viết một tập lệnh có sử dụng một cái bẫy để bắt tín hiệu
  • Access and process command-line arguments passed into a script
  • Truy cập và xử lý đối số dòng lệnh thông qua một tập lệnh
  • Viết tập lệnh sed để thực hiện nhiệm vụ chỉnh sửa không tương tác
  • Viết tập lệnh nawk để thao tác các lĩnh vực cá nhân trong vòng một ghi chép
  • Viết tập lệnh nawk để viết báo cáo dựa trên một tập tin đầu vào
  • Thực hiện chuỗi thao tác và số học trên các biến số nguyên vỏ
  • Phát triển một tin nhắn DỤNG để hiển thị khi một tập lệnh trong cuộc gọi không chính xác

5. Khóa học liên quan

Trước:

Sau:




Nội dung

SHELL PROGRAMMING FOR SYSTEM ADMINISTRATORS

Module 1 - UNIX Shells and Shell Scripts

  • Describe the role of shells in the UNIX environment
  • Describe the standard shells
  • Define the components of a shell script
  • Write a simple shell script

Module 2 - Writing and Debugging Scripts

  • Start a script with #!
  • Put comments in a script
  • Change permissions on a script
  • Execute a script
  • Debug a script

Module 3 - The Shell Environment

  • 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
  • Define the built-in aliases
  • Customize the Bourne and Korn shell environments
  • Use the tilde expansion and command substitution features of the Korn shell

Module 4 - 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

Module 5 - The sed Editor

  • Use the sed editor to perform noninteractive editing tasks
  • Use regular expression characters with the sed command

Module 6 - The nawk Programming Language

  • Use nawk commands from the command line
  • Write simple nawk programs to generate data reports from text files
  • Write simple nawk programs to generate numeric and text reports from text files

Module 7 - 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

Module 8 - 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

Module 9 - 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

Module 10 - 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
  • Use Korn shell arrays
  • Set default values for parameters
  • Use the Korn shell built-in let, print, set, and typeset statements

Module 11 - 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

Module 12 - Traps

  • Describe how the trap statement works
  • Include trap statements in a script
  • Use the trap statement to catch signals and handle errors