|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/shell-scripting-practice-exercises-with-demonstration/
课程评论:没有评论
课程名称:Shell脚本实践与演示 课程概述: 本课程适合任何希望在Linux操作系统上自动化任务或创建简单程序的人士。学习Shell脚本对以下群体特别有帮助:系统管理员可以自动化系统维护任务,如备份和服务器更新;数据科学家可以学习预处理和组织数据集,或自动化数据分析流程;Web开发人员可以用来自动化Web应用程序的部署或设置本地开发环境;DevOps专业人士可以用来自动化软件项目的构建、测试和部署过程。 课程内容: - 第一部分:课程概览 - 第二部分:实验环境设置 - 安装VirtualBox - 在VirtualBox上逐步下载和安装Linux(CentOS),并通过putty连接 - 第三部分:Shell脚本标准 - Shell简介 - 什么是Shell脚本 - Shell脚本的命名约定 - Shell脚本格式 - Linux中的文件权限 - 如何运行Shell脚本 - Shell脚本中的基本命令 - 文件列表及理解LS输出 - vi文本编辑器介绍 - 课程测试 - 第四部分:Shell脚本基本概念 - 创建第一个脚本 - Hello World - 定义变量 - Shell脚本中的算术表达式 - 字符串操作 - 字符串比较 - 输入/输出语句 - Shell脚本中的关系运算符 - 条件语句(决策执行) - Case语句 - Shell脚本中的for循环 - Shell脚本中的do-while循环 - Shell脚本中的until循环 - Shell脚本中的select循环 - 无限循环与休眠 - Shell脚本中的退出状态 - Shell脚本中的特特殊变量 - 课程测试 - 第五部分:函数、数组和字符串的使用 - Shell脚本中的函数 - 向函数传递参数 - 嵌套函数 - Shell脚本中的索引数组 - Shell脚本中的关联数组 - 字符串连接 - 从字符串中提取子串 - Shell脚本中的嵌套循环 - Shell脚本中的嵌套条件 - Shell脚本中的移位 - 课程测试 - 第六部分:实际脚本编写 - 从文件中搜索和提取数据 - 删除最旧文件和文件夹的Shell脚本 - 备份目录中的文件的Shell脚本 - 如何在文件系统中使用循环 - 检查按日期或IP地址登录的用户 - 如何在Shell脚本中跟踪日志消息 - 如何自动化用户账户创建 - 如何检查未登录用户 - 如何跟踪进程状态并终止它 - 如何添加和删除库存数据 - 如何将一个脚本中的信息重用到另一个脚本 - 如何检查远程主机的状态和连接性 - 如何通过cron作业调度脚本 - 如何检查磁盘空间状态 - 如何创建和验证创建的文件 - 如何实时创建脚本 - 如何在实时服务器数据库上存储数据 - 如何从实时数据库服务器获取数据 - 课程测试 - 第七部分:补充内容 - Linux目录结构 - 绝对路径与相对路径 - 使用命令行创建文件和目录 - 更改文件权限 - 修改用户与用户组的文件所有权 - 复制目录和文件 - 删除目录和文件 - head和tail命令 - 通配符 - grep命令 - 管道 - Shell别名 - 压缩和归档文件(使用tar, gzip) - Tab键自动完成功能的解释 - 在Linux中查找IP地址 - 用户和组管理 - ping命令 - 资料手册 通过本课程,学生将全面了解Shell脚本的基础知识和实际应用,为日常任务自动化打下坚实的基础。
This course will be beneficial for anyone who is interested in automating tasks or creating simple programs on a Linux operating system. Some examples of people who might benefit from learning shell scripting include: System administrators will be able to automate system maintenance tasks, such as backups and server updates. Data scientists will be able to learn about pre-process and organize data sets, or to automate data analysis pipelines. Web developers will be able to use to automate the deployment of web applications or to set up a local development environment. DevOps professionals will be able to use to automate the build, test, and deployment processes of software projects.In this course we will cover the following:Section 1: Course OverviewCourse OverviewSection 2: Lab SetupInstallation of Virtual BoxDownload & Installation of Linux(CentOS) on VirtualBox Step by Step Download, Install and connect through puttySection 3: Shell Scripting StandardsThe ShellWhat is Shell Scripting? Naming Convention for Shell ScriptShell Scripting FormatFile Permissions in Linux How to Run a Shell Script Basic Commands used in Shell Scripting Listing files and understanding LS outputText Editor vi IntroductionQuizSection 4: Shell Scripting Basic ConceptsCreating first script - Hello WorldDefining variableArithmetic Expressions in Shell ScriptingString Manipulation in Shell ScriptingString Comparisons in Shell ScriptingRead and Echo (Input/Output) statementsRelational Operators in Shell ScriptingConditional Statements (Decision Making)Case StatementFor loop in Shell ScriptingDo-while in Shell ScriptingUntil Loop in Shell ScriptingSelect Loop in Shell ScriptingInfinite Loops, and SleepingExit Status in Shell ScriptingSpecial Variables in Shell ScriptingQuizSection 5: Working with Functions, Arrays and StringFunctions in Shell ScriptingPassing Parameters to a FunctionNested FunctionsIndexed array in Shell ScriptingAssociative array in shell ScriptingString ConcatenationExtract a substring from a stringNested Loop in Shell ScriptingNested Conditions in Shell ScriptingShifting in Shell ScriptingQuizSection 6: Real Life ScriptingSearching and Extracting Data from FilesShell script to delete oldest files and foldersShell Script to Backup Files in DirectoryHow to use Loops in a file system?Check Users Logged In, Ordered by Date, or IP AddressHow to trace log messages in a shell script?How to automate user account creation?How to check users not logged in?How to track the process's status and terminate it?How to add and delete data from Inventory?How to reuse one script information to another?How to check the status and connectivity of remote hosts?How to schedule script through cron job?How to check disk space status?How to create and verify created files?How to create script on run time?Store data on live server databaseGet data from live database serverQuizSection 7: Additional ContentThe Linux Directory StructureAbsolute vs relative path of a directoryCreating files and directories by command lineChanging File PermissionsModify File Ownership for user and groupCopying Directories and FilesRemoving Directories and Fileshead and tail commandsWild CardsGrepPipeShell AliasesCompressing and archiving files (using tar, gzip)Explanation of Tab Key CompletionFind your IP address in linuxUser and group administration by commandPing commandHandouts