- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话: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
您可能关注的文档
- GSM全球移动通信系统.pdf
- graphene oxide wrapped na3v2(po4)3c nanocomposite as superior cathode material for sodium-ion batteries:氧化石墨烯包裹na3v2(po4)3c纳米复合材料作为钠离子电池正极材料上.pdf
- GPC1-ASZ光伏防雷智能汇流箱技术说明书(改).doc
- gs0【强烈推荐】上海小学牛津英语一年级第一学期期末练习.doc
- GST-TS-Z01A消防电话总机使用说明书.pdf
- guo冀教版五年级数学_分数乘分数_课件.ppt
- gz2008045办公设备doc - 赣州市招标投标中心询价文件.doc
- HACCP内审检查表(doc 18).doc
- HACCP技术在海苔二次加工过程中的应用 - 食品伙伴网.doc
- HBB_3_S板式换热器测试报告.pdf
- IT行业及企业介绍.pdf
- IT面试笔试题全集_SOA篇_史上最全_Rain系列.doc.doc
- IT面试笔试题全集_Servlet篇_史上最全_Rain系列.doc.doc
- IT面试笔试题全集_QTP篇_史上最全_Rain系列.doc
- IT面试笔试题全集_史上最全_JSP篇_Rain系列.doc
- IT面试笔试题全集_网络技术篇_Rain系列.doc
- IT面试笔试题全集_UNIX篇_Rain系列.doc
- IT面试笔试题全集_软件测试篇3_史上最全_Rain系列.doc
- I′ve been studying history in China.ppt
- IT面试笔试题全集_Struts篇_史上最全_Rain系列.doc.doc
原创力文档


文档评论(0)