面试题总结之Linux/Shell
2016-06-04 17:04
603 查看
Linux
Linux cshrc文件作用Linux如何起进程/查看进程/杀进程
Linux 文件755 代表什么权限
Linux辅助线程
Linux进程间通信方法
pipeline,msgq...
进程间通信_百度百科
http://baike.baidu.com/link?url=tLNXNQvG5Wo6NptnjkflYaUQbdqW5fC3n40Cv4iF4YSX5EzgfJgwIbZnAfpXLVV1QRvP1293Dgo9qRBmSVfME_
Linux基本命令
Linux 命令大全 | 菜鸟教程
http://www.runoob.com/linux/linux-command-manual.html
Linux监控命令,监测IO
Shell
What is $*?Will display all the commandline arguments that are passed to the script
What is the difference between a shell variable that is exported and the one that is not exported?
export LANG=C
will make the variable LANG the global variable, put it into the global environment. all other processes can use it.
LANG=C
will change the value only in the current script.
How will you list only the empty lines in a file (using grep)?
grep "^[ ]*$" filename.txt
In character set (between [ and ] one space and tab is given)
this command will gives all the blank line including those having space and tabs (if pressed)only
How do you read arguments in a shell program - $1, $2 ?
#!/bin/sh
for i in $*
do
echo $i
done
On executig the above script with any number of command-line arguments it will display all the parametsrs.
How would you get the character positions 10-20 from a text file?
cut -c10-20 <filename.txt>
or
cat filename.txt | cut -c 10-20
相关文章推荐
- Shell编程实现俄罗斯方块游戏(一步步详解)一
- 用Shell命令批量压缩指定目录下指定目录到目标目录中
- Python查看远程主机端口是否开放以及BashShell实现
- SQL Server如何启用xp_cmdshell组件
- 第一部分:JDK的源码安装和常用shell操作
- Unit Testing PowerShell Code with Pester
- Pester: Unit Testing for PowerShell
- powershell-无法加载文件,因为在此系统中禁止执行脚本
- bash手册 之重定向原理与实现
- Linux操作系统基础解析之(七)——Bash(Shell)基础知识(4)
- Linux操作系统基础解析之(七)——Bash(Shell)基础知识(3)
- Shell脚本调试技术
- shell if 判断
- HBASE启动脚本/Shell解析
- BASH内置变量
- erlang 多种方法接入远程shell控制台
- shell内建(built in)命令
- 四、Shell输入、输出功能和字符颜色设置
- 三、Shell变量类型和运算符
- Shell文件权限和脚本执行