OS视角下对Shell的简单理解
今年的系统能力大赛的评测方式发生改变,需要在启动自己的操作系统之后,自动的扫描磁盘,运行XXXX-testcode.sh,为了做shell的支持,去简单了解了一下shell的原理。   Shell(外壳)是一种用户界面,用于与计算机操作系统进行交互。它提供了一个命令行界面(CLI),允许用户通过输入文本命令来执行各种操作,如运行程序、管理文件和目录、配置系统等。Shell 是用户与操作系统内核之间的中间层,它解析用户的输入并将指令传递给操作系统执行。——来自kimi的定义  简单解释一下,就是你可以在这个地方(shell提供的命令行界面)输入命令,它会解析并执行。在此我主要简单讨论.sh文件的执行流程。(不针对某个特定的shell,下面统称为shell来进行说明) 假设你有一个temp.sh文件,当你在命令行界面输入bash temp.sh这个命令的时候(其实这个命令也是由shell进行解析的),shell就会开始工作 首先分词器会将这行命令解析为一个一个的词(token):bash...
Study Butterfly Theme Blog2
Front-matterFront-matter 是 markdown 文件最上方以 — 分隔的区域,用于指定个别档案的变数。  Page Front-matter 用于 配置页面  Post Front-matter 用于 配置文章页   Page Front-matter:[needed] title: 页面标题date:页面创建日期type:标签、分类和友情链接三个页面需要配置 [selected] updated:页面更新日期comments:显示页面评论模块(默认为true)description:页面描述keywords:页面关键词top_img:页面顶部图片mathjax:显示mathjax(当设置 mathjax 的 per_page: false 时,才需要配置,默认 false)katex:显示 katex (当设置 katex 的 per_page: false 时,才需要配置,默认 false)aside:显示侧边栏 (默认 true)aplayer:在需要的页面加载 aplayer 的 js 和...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post"  More info: Writing Run server1$ hexo server  More info: Server Generate static files1$ hexo generate  More info: Generating Deploy to remote sites1$ hexo deploy  More info: Deployment 
