Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 114 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Tiêu đề
Lập Trình Shell
Định dạng
Số trang
114
Dung lượng
2,26 MB
Nội dung
L P TRÌNH SHELL Nội dung L p trình shell Đặc trưng c a script Cấu trúc shell-script Create File & Run Script Review commands Parameter & Variables Parameter Entity that stores values type positional parameters arguments present on command line referenced by number special parameters set by shell to store info about aspects of current state Variable identified by a name Contain values Positional Parameters Giứ trị default c a tham số nocaseglob globstar allows use of ** to descend recursively into directories &subdirectories looking for matching files review Using script for automating admin Create Commands That Affect Multiple Systems Simple Multi-SSH simple shell script that executes specified command on every machine listed in configuration file Group-Based Multi-SSH Simple Multi-SSH Group-Based Multi-SSH run a command on a certain subset of machines instead of being forced to run it on every machine in every circumstance Copying Files copies one or more local files, recursively, to a given directory on multiple machines first arg local file, or a list of local files contained within quotes second arg a destination directory Following the file(s) and destination directory is one or more group names ...Nội dung L p trình shell Đặc trưng c a script Cấu trúc shell- script Create File & Run Script Review commands Parameter & Variables ... parameters arguments present on command line referenced by number special parameters set by shell to store info about aspects of current state Variable identified by a name Contain values