介绍
在这个挑战中,你将创建一个简单的文件系统浏览脚本,展示你对 shell 脚本中基本文件和目录操作的理解。你将使用文件测试来检查文件和目录的存在性、类型和权限。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
linux(("Linux")) -.-> linux/BasicSystemCommandsGroup(["Basic System Commands"])
shell(("Shell")) -.-> shell/VariableHandlingGroup(["Variable Handling"])
shell(("Shell")) -.-> shell/ControlFlowGroup(["Control Flow"])
shell(("Shell")) -.-> shell/FunctionsandScopeGroup(["Functions and Scope"])
linux/BasicSystemCommandsGroup -.-> linux/echo("Text Display")
linux/BasicSystemCommandsGroup -.-> linux/test("Condition Testing")
shell/VariableHandlingGroup -.-> shell/variables_usage("Variable Usage")
shell/ControlFlowGroup -.-> shell/if_else("If-Else Statements")
shell/ControlFlowGroup -.-> shell/cond_expr("Conditional Expressions")
shell/FunctionsandScopeGroup -.-> shell/func_def("Function Definition")
subgraph Lab Skills
linux/echo -.-> lab-388898{{"文件系统浏览脚本"}}
linux/test -.-> lab-388898{{"文件系统浏览脚本"}}
shell/variables_usage -.-> lab-388898{{"文件系统浏览脚本"}}
shell/if_else -.-> lab-388898{{"文件系统浏览脚本"}}
shell/cond_expr -.-> lab-388898{{"文件系统浏览脚本"}}
shell/func_def -.-> lab-388898{{"文件系统浏览脚本"}}
end