IT面试笔试题全集_Linux篇_Rain系列.doc

  1. 1、本文档共169页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
IT面试笔试题全集_史上最全_Linux篇_Rain系列 几个Shell Script面试题 _追雨制作 1. How do you take a single line of input from the user in a shell script? 2. Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files. 3. Write a regular expression (or sed script) to replace all occurrences of the letter #8216;f #8217;, followed by any number of characters, followed by the letter #8216;a #8217;, followed by one or more numeric characters, followed by the letter #8216;n #8217;, and replace what #8217;s found with the sing #8220;UNIX . 4. What happens to a child process that dies and has no parent process to wait for it and what #8217;s bad about this? 5. How do you create a swapfile?1. How do you take a single line of input from the user in a shell script? 2. Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files. 3. Write a regular expression (or sed script) to replace all occurrences of the letter #8216;f #8217;, followed by any number of characters, followed by the letter #8216;a #8217;, followed by one or more numeric characters, followed by the letter #8216;n #8217;, and replace what #8217;s found with the sing #8220;UNIX . 4. What happens to a child process that dies and has no parent process to wait for it and what #8217;s bad about this? 5. How do you create a swapfile? Linux磁盘管理方面的命令都有哪些?如何使用它们? _追雨制作 sync 功能说明:将内存缓冲区内的数据写入磁盘。 语  法:sync [--help][--version] 补充说明:在Linux系统中,当数据需要存入磁盘时,通常会先放到缓冲区内,等到适当的时刻再写入磁盘,如此可提高系统的执行效率。 参  数: help 显示帮助。 version 显示版本信息。 symlinks(symbolic links) 功能说明:维护符号连接的工具程序。 语  法:symlinks [-cdrstv][目录] 补充说明:symlinks可检查目录中的符号连接,并显示符号连接类型。以下为symlinks可判断的符号连接类型: absolute:符号连接使用了绝对路径。 dangling:原始文件已经不存在。 lengthy:符号连接的路径中包含了多余的 ../ 。 messy:符号连接的路径中包含了多余的 / 。 other_fs:原始文件位于其他文件系统中。 relative:符号连接使用了相对路径。 参  数: -c 将使用绝对路径的符号连接转换为相对路径。 -d 移除dangling类型的符号连接。 -r 检查目录下所有子目录中的符号连接。 -s 检查lengthy类型的符号连接。 -t 与-c一并使用时,会显示如何将绝对路径的符号连接转换为相对路径,但不会实际转换。 -v 显示所有类型的符号连接。 - swapon 功能说明:启动系统交换区(sw

文档评论(0)

aena45 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档