操作系统
荒岛码农
这个作者很懒,什么都没留下…
展开
-
expect教程
<h3 style="font-size: 16px; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 0px; padding-left: 0转载 2014-05-28 08:42:39 · 448 阅读 · 0 评论 -
Linux 技巧:让进程在后台可靠运行的几种方法
Linux 技巧:让进程在后台可靠运行的几种方法申 毅, 软件工程师, IBM 中国软件开发中心2008 年 5 月 29 日我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结果却由于网络的不稳定导致任务中途失败。如何让命令提交后不受本地关闭终端窗口/网络断开连接的干扰呢?下面举了一些例子, 您可以针对不转载 2015-05-20 12:20:44 · 439 阅读 · 1 评论 -
Linux 下定时提交SVN
Ubuntu下定时提交代码到SVN转载 2014-11-05 17:52:48 · 1273 阅读 · 0 评论 -
Shell文本处理 (4) sed、awk、diff、patch、
1、行操作 sedcat txt | sed '2d‘ // 删除第2行cat txt | sed '2,5d’ // 删除第2-5行'cat txt | sed '2,$d‘ // 删除第2到最后1行cat txt | sed '2a hhhhhhh' // 第2后加上一行hhhhhhhcat tx原创 2015-02-19 19:26:51 · 557 阅读 · 0 评论 -
Linux 集群时钟同步
http://blog.csdn.net/tianmohust/article/details/7436064转载 2014-11-05 18:05:22 · 659 阅读 · 0 评论 -
Shell文本处理 (1). bash命令杂项
1、变量取消unset[admin@VA128 ~]$ myVar='hahahaha'[admin@VA128 ~]$ echo $myVarhahahaha[admin@VA128 ~]$ unset myVar[admin@VA128 ~]$ echo $myVar2、单双引号区别单引号与双引号区别。单引号内部的$变量不替换,双引号内部的变量替换。原创 2015-02-19 17:11:15 · 407 阅读 · 0 评论 -
SVNKIT 主要方法
SVNLogClient的方法 doLog() 'svn log' doList() 'svn list' doAnnotate() 'svn blame'转载 2014-11-05 18:24:53 · 3354 阅读 · 1 评论 -
Shell文本处理 (2). cut、sort、wc、uniq、tr、 join、paste、 split、xargs
1、切分提取 cut用":"切分[admin@VA128 ~]$ echo $PATH/opt/phoenix/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/vmware/bin:/usr/java/jre-vmware/bin:/opt/vmwar原创 2015-02-19 17:49:39 · 448 阅读 · 0 评论 -
关于syslog
syslog架构Unix/Linux系统中的大部分日志都是通过一种叫做syslog的机制产生和维护的。syslog是一种标准的协议,分为客户端和服务器端,客户端是产生日志消息的一方,而服务器端负责接收客户端发送来的日志消息,并做出保存到特定的日志文件中或者其他方式的处理。在Linux中,常见的syslog服务器端程序是syslogd守护程序。这个程序可以从三个地方接收日志消息:(1转载 2014-11-06 18:22:39 · 3050 阅读 · 0 评论 -
通过NFSv3挂载HDFS到本地目录
http://blog.csdn.net/dmcpxy/article/details/182570651.1 配置编辑$HADOOP_HOME/etc/hadoop/hdsf-site.xml文件,增加如下配置: dfs.access.time.precision 3600000 The access time for HDFS file转载 2015-05-21 18:14:02 · 563 阅读 · 0 评论 -
centos启动自动进入纯命令行模式3
<a rel="nofollow" href="http://wxfstwxf.iteye.com/blog/1170496">http://wxfstwxf.iteye.com/blog/1170496<span style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px;"># vi /etc转载 2014-05-28 08:43:31 · 664 阅读 · 0 评论 -
笔记:Vim最常用命令与快捷键
PageDown PageUp 翻页Home 移动到行首End 移动到行尾G 移动最后一行5G、10G 移动到第5、10行gg、1G 移动到第一行 /foo 查找foon 查找下一个(继续上一次查找)N 查找上一个(继续上一次查找)10,100s/foo1/foo2/g 在10到100行之间替换1,$s/foo1/foo2原创 2014-05-28 08:45:40 · 401 阅读 · 0 评论 -
Samba的基本配置
<a rel="nofollow" href="http://blog.csdn.net/xiaoxxcool/article/details/3017569">http://blog.csdn.net/xiaoxxcool/article/details/3017569<div style="margin-top: 5px; margin-right: 0px; margin-botto转载 2014-05-28 08:44:07 · 422 阅读 · 0 评论 -
Linux下远程登录,改的例子
<h3 style="font-size: 16px; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 0px; padding-left: 0原创 2014-05-28 08:42:41 · 419 阅读 · 0 评论 -
Shell文本处理 (3) grep 正则表达式
grep 't[ae]st' myTxt // 查找 tast 或testgrep '[^g]oo' myTxt // 查找含有oo,但前面没有ggrep '[^a-zA-Z]oo' myTxt // 查找含有oo,但前面没有字母grep '^the' myTxt // 查找the开头grep '^[a-z]'原创 2015-02-19 18:14:50 · 353 阅读 · 0 评论 -
SSH 无密码访问配置的文件访问权限
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys然后坑的地方就来了。对于.ssh目录,公钥、私钥的权限都有严格的要求。1、用户目录~ 755或700,不能使77*2、.ssh目录7553、.pub或authorized_转载 2014-09-16 10:18:02 · 440 阅读 · 0 评论 -
笔记:Shell Script 简明语法
1. 输入read -p "inputyour name: " name2. 输出echo -e "yourname : $name "3. 参数输入命令:runJavaAgent a b c则 $0为 runJavaAgent,$1为a, $2为b, $3 为c$#: 参数个数,即 3$@:所有参数,即 a、b、c$*: (不常用,略)4.原创 2014-05-28 08:45:46 · 404 阅读 · 0 评论 -
笔记:进程(process)与工作(job)
1. 列出后台工作转台 jobs[admin@server3 ~]$ jobs -l[1] 15893 Stopped (tty output) top[2] 15897 Stopped (tty output) top[3] 15898 Stopped (tty output) top[4]- 15899 Stopped (tty output) to原创 2014-05-28 08:45:44 · 895 阅读 · 0 评论 -
笔记:文本处理命令
1. 切分 cut 例子:echo $PATH } cut -d ':' -f 3,52.选取某行 grepps aux | grep java-n 行号-v 反向选择-i 忽略大小写3.编辑一整行 sed4.按列编辑每行 awk例子: 杀死Java Anent 进程 kill -9 `ps aux|grep 'AgentMain' | grep-v 'grep原创 2014-05-28 08:45:42 · 381 阅读 · 0 评论