几个Shell Script面试题

Linux

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?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?

同类其他面试题 点击新一篇或旧一篇可浏览全部同类面试题

新一篇:
旧一篇:

你有答案? 你对以上面试题有意见? 你想发表你的见解? 写下来吧!你的分享将会让很多人受益!

相关面试题

·Linux运维工程师面试题
·介绍一下Linux内存子系统的调优
·Linux 性能调优都有哪几种方法?
·Linux文件处理命令都有哪些?
·linux查看硬件配置命令都有哪些?

版权声明:本站大部分内容为原创! 另有少部分内容整理于网络,如需转载本站内容或关切版权事宜请联系站长。未经允许,严禁复制转载本站内容,否则将追究法律责任。 本站欢迎与同类网站建立友情链接,请联系QQ:176687814