面试总结之Linux/Shell
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
用脚本实现:两个文件有多列,在指定列中找相匹配串。
精心汇总的 24 道 shell 脚本面试题 - 程序员大咖
- https://mp.weixin.qq.com/s/elYuWwwiYR2XzP2K3qDeNQ
- https://linux.cn/article-5311-1.html
- Q:1 Shell脚本是什么、它是必需的吗?
- Q:2 什么是默认登录shell,如何改变指定用户的登录shell
- Q:3 可以在shell脚本中使用哪些类型的变量?
- Q:4 如何将标准输出和错误输出同时重定向到同一位置?
- Q:5 shell脚本中“if”语法如何嵌套?
- Q:6 shell脚本中“$?”标记的用途是什么?
- Q:7 在shell脚本中如何比较两个数字 ?
- Q:8 shell脚本中break命令的作用 ?
- Q:9 shell脚本中continue命令的作用 ?
- Q:10 告诉我shell脚本中Case语句的语法 ?
- Q:11 shell脚本中while循环语法 ?
- Q:12 如何使脚本可执行 ?
- Q:13 “#!/bin/bash”的作用 ?
- Q:14 shell脚本中for循环语法 ?
- Q:15 如何调试shell脚本 ?
- Q:16 shell脚本如何比较字符串?
- Q:17 Bourne shell(bash) 中有哪些特殊的变量 ?
- Q:18 在shell脚本中,如何测试文件 ?
- Q:19 在shell脚本中,如何写入注释 ?
- Q:20 如何让 shell 就脚本得到来自终端的输入?
- Q:21 如何取消变量或取消变量赋值 ?
- Q:22 如何执行算术运算 ?
- Q:23 do-while语句的基本格式 ?
- Q:24 在shell脚本如何定义函数呢 ?
面试总结之Linux/Shell的更多相关文章
- 阿里Linux Shell脚本面试25个经典问答
		转载: 阿里Linux Shell脚本面试25个经典问答 Q:1 Shell脚本是什么.它是必需的吗? 答:一个Shell脚本是一个文本文件,包含一个或多个命令.作为系统管理员,我们经常需要使用多个命 ... 
- linux shell 中的sleep命令
		开始还以为是这样的语法: sleep(1), 后面发现是: linux shell 中的sleep命令 分类: LINUX 在有的shell(比如linux中的bash)中sleep还支持睡眠(分,小 ... 
- Linux shell脚本编程(三)
		Linux shell脚本编程 流程控制: 循环语句:for,while,until while循环: while CONDITION; do 循环体 done 进入条件:当CONDITION为“真” ... 
- Linux shell脚本编程(二)
		Linux shell脚本编程(二) 练习:求100以内所有偶数之和; 使用至少三种方法实现; 示例1: #!/bin/bash # declare -i sum=0 #声明一个变量求和,初始值为0 ... 
- Linux shell脚本编程(一)
		Linux shell脚本编程: 守护进程,服务进程:启动?开机时自动启动: 交互式进程:shell应用程序 广义:GUI,CLI GUI: CLI: 词法分析:命令,选项,参数 内建命令: 外部命令 ... 
- Linux Shell 流程控制语句
		* 本文主要介绍一些Linux Shell 常用的流程控制语句* 1. if 条件语句:if-then/if-elif-fi/if- else-fi if [条件判断逻辑1];then command ... 
- Linux Shell 截取字符串
		Linux Shell 截取字符串 shell中截取字符串的方法很多 ${var#*/} ${var##*/} ${var%/*} ${var%%/*} ${var:start:len} ${var: ... 
- Linux Shell 重定向与管道【转帖】
		by 程默 在了解重定向之前,我们先来看看linux 的文件描述符. linux文件描述符:可以理解为linux跟踪打开文件,而分配的一个数字,这个数字有点类似c语言操作文件时候的句柄,通过句柄就可以 ... 
- Linux Shell 通配符、元字符、转义符【转帖】
		作者:程默 说到shell通配符(wildcard),大家在使用时候会经常用到.下面是一个实例: 1 1 2 3 4 [chengmo@localhost ~/shell]$ ls a.txt ... 
随机推荐
- [kata]数值内3和5的倍数的总和求解
			这个题是这样的,方法参数接受一个数值,以3,5为基数,返回小于这个参数的3,5的倍数,加上3,5本身总和. 朋友段帅说头疼,估计是天气原因吧,好起来吧,还得战斗呢. 
- 【eclipse】运行maven项目clean tomcat7:run报错
			问题: Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean 解决: 关闭进程javaw.exe,然 ... 
- UVa 10328 Coin Toss(Java大数+递推)
			https://vjudge.net/problem/UVA-10328 题意: 有H和T两个字符,现在要排成n位的字符串,求至少有k个字符连续的方案数. 思路:这道题目和ZOJ3747是差不多的,具 ... 
- 使用 Redis
			Redis(https://redis.io/),既不像 SQLite 以表的形式存储数据,也不像 MongoDB 允许以嵌套结构存储和查询,它是一种内存数据库结构,即将数据缓存在内存中.它将键—值( ... 
- Spring IOC容器的初始化流程
			IOC初始化流程 Resource定位:指对BeanDefinition的资源定位过程.Bean 可能定义在XML中,或者是一个注解,或者是其他形式.这些都被用Resource来定位, 读取Resou ... 
- 雷林鹏分享:Ruby 面向对象
			Ruby 面向对象 Ruby 是纯面向对象的语言,Ruby 中的一切都是以对象的形式出现.Ruby 中的每个值都是一个对象,即使是最原始的东西:字符串.数字,甚至连 true 和 false 都是对象 ... 
- JavaScript基本概要
			body, table{font-family: 微软雅黑; font-size: 10pt} table{border-collapse: collapse; border: solid gray; ... 
- 软件工程firstblood
			https://github.com/happyeven/WC 项目要求 wc.exe 是一个常见的工具,它能统计文本文件的字符数.单词数和行数.这个项目要求写一个命令行程序,模仿已有wc.exe 的 ... 
- 在jenkins和sonar中集成jacoco(二)--在jenkins中生成jacoco覆盖率报告
			先要在jenkins上安装jacoco的插件,安装完成之后在job的配置项中可以增加这个选项: 第一个录入框是你的覆盖率文件(exec),第二个是class文件目录,第三个是源代码文件目录. 配置好了 ... 
- bacnet ip转MQTT
			迈思德网关最新支持BACNET IP协议,可以将BACNET IP转换为MODBUS.MQTT.OPC等协议,与百度天工,阿里云等无缝对接. 支持AI.AO.DI.DO.AV.DV六个对象的读写. 
