几个Shell Script面试题


Posted in 面试题 onAugust 31, 2012
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 alloccurrences of the letter ‘f’, followed by any number of characters, followed by the letter ‘a’, followed by one or more numeric characters,followed by the letter ‘n’, and replace what’s found with the string“UNIX”.
4. What happens to a child process that dies and has no parent process to wait for it and what’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 ‘f’, followed by any number of characters,followed by the letter ‘a’, followed by one or more numeric characters,followed by the letter ‘n’, and replace what’s found with the string “UNIX”.
4. What happens to a child process that dies and has no parent process to wait for it and what’s bad about this?
5. How do you create a swapfile?

Tags in this post...

面试题 相关文章推荐
Yahoo的PHP面试题
May 26 面试题
C++如何引用一个已经定义过的全局变量
Aug 25 面试题
VC++笔试题
Oct 13 面试题
如何在发生故障的节点上重新安装 SQL Server
Mar 14 面试题
数据库设计的包括哪两种,请分别进行说明
Jul 15 面试题
.NET常见笔试题集
Dec 01 面试题
STP的判定过程
Oct 01 面试题
通用C#笔试题附答案
Nov 26 面试题
介绍一下gcc特性
Jan 20 面试题
有abstract方法的类一定要用abstract修饰吗
Mar 14 面试题
过滤器的用法
Oct 08 面试题
Tomcat的缺省是多少,怎么修改
Apr 09 面试题
介绍一下write命令
Sep 24 #面试题
Linux操作面试题
May 16 #面试题
几个Linux面试题笔试题
Dec 01 #面试题
LINUX下线程,GDI类的解释
Dec 14 #面试题
什么是用户模式(User Mode)与内核模式(Kernel Mode) ?
Sep 07 #面试题
下列程序在32位linux或unix中的结果是什么
Mar 25 #面试题
一些Solaris面试题
Dec 22 #面试题
You might like
php实现单链表的实例代码
2013/03/22 PHP
PHP加密扩展库Mcrypt安装和实例
2013/11/10 PHP
php实现的css文件背景图片下载器代码
2014/11/11 PHP
php把大写命名转换成下划线分割命名
2015/04/27 PHP
php ajax数据传输和响应方法
2018/08/21 PHP
Yii 使用intervention/image拓展实现图像处理功能
2019/06/22 PHP
Referer原理与图片防盗链实现方法详解
2019/07/03 PHP
Laravel实现通过blade模板引擎渲染视图
2019/10/25 PHP
Yii实现微信公众号场景二维码的方法实例
2020/08/30 PHP
jquery ajax return没有返回值的解决方法
2011/10/20 Javascript
微信小程序 触控事件详细介绍
2016/10/17 Javascript
详解基于javascript实现的苹果系统底部菜单
2016/12/02 Javascript
JS函数节流和函数防抖问题分析
2017/12/18 Javascript
Node.js JSON模块用法实例分析
2019/01/04 Javascript
使用post方法实现json往返传输数据的方法
2019/03/30 Javascript
详解JS实现简单的时分秒倒计时代码
2019/04/25 Javascript
深入理解 JS 垃圾回收
2019/06/03 Javascript
解决layer图标icon不加载的问题
2019/09/04 Javascript
[01:45]亚洲邀请赛互动指南虚拟物品介绍
2015/01/30 DOTA
Django 如何获取前端发送的头文件详解(推荐)
2017/08/15 Python
Python中%是什么意思?python中百分号如何使用?
2018/03/20 Python
Tensorflow之MNIST CNN实现并保存、加载模型
2020/06/17 Python
Python txt文件常用读写操作代码实例
2020/08/03 Python
记录一下scrapy中settings的一些配置小结
2020/09/28 Python
Fanatics官网:运动服装、球衣、运动装备
2020/10/12 全球购物
应届生.NET方向面试题
2015/05/23 面试题
解释下列WebService名词:WSDL、SOAP、UDDI
2012/06/22 面试题
办公室文秘自我鉴定
2013/09/21 职场文书
小车司机岗位职责
2013/11/25 职场文书
清华大学自主招生自荐信
2014/01/29 职场文书
前处理班长职位说明书
2014/03/01 职场文书
服务型党组织建设典型材料
2014/05/07 职场文书
高中教师考核方案
2014/05/18 职场文书
学习普通话的体会
2014/11/07 职场文书
2015年财政所工作总结
2015/04/25 职场文书
AJAX学习笔记
2021/05/18 Javascript