我是 linux 新手,使用 ubuntu'10.10'......我基本上想知道学习 shell 的意义是什么......???满意的答案...
2 回答
Whenever you want to automate small tasks where using real programming languages is overkill (e.g. batch convert files, rip DVD chapters, synchronize directories, ...) shell scripts often are invaluable.
Moreover, a lot of "plumbing" in the system is done with shell scripts (e.g. daemons start/stop scripts, event scripts), so knowing at least how to read them often can give you a grasp on how some parts of the system work under the hood, and give you a clue about where the problem can lie in case of malfunctions; knowing how to write them can also be useful if you need to customize the system in some way.
这是一个很好的问题。事实上,学习 shell 脚本可以帮助你完成很多任务,(它帮助了我)。每当我必须一个一个地执行多个 Linux 命令时,有时当我必须以相同的模式一遍又一遍地运行作业时,我都会使用 shell 脚本。Shell 确实有助于完成此类任务。在教学大纲之外,学习 shell 的任务让我更熟悉操作系统和命令。