Chinaunix首页 | 论坛 | 博客
  • 博客访问: 460216
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

发布时间:2014-05-04 15:22:34

modify your /etc/sudoers file add below information to no-root id.test   ALL=(ALL)       ALL,!/bin/bash......【阅读全文】

阅读(704) | 评论(0) | 转发(0)

发布时间:2014-05-04 10:19:54

1.perl -lpe 's/\s*$//'2.ls -l | perl -lane 'print "$F[7] $F[1]"'3perl -F: -lane 'print $F[0]' /etc/passwd4.perl -lape 's/Installing\K.*/ Test/'5.perl -F: -lane 'print $F[0] if $F[4] =~ /'"'"'/' /etc/passwd6env re="'" perl -F: -lane 'print $F[0] if $F[4] =~ /$ENV{re}/' /etc/p.........【阅读全文】

阅读(513) | 评论(0) | 转发(0)

发布时间:2014-05-02 21:32:31

如何添加行号:   vim file :g/^/exe ":s/^/".line(".")在特定的行添加行号:g/keyword/exe ":s/^/".line(".")转个操作例子:住宅底商-商铺商用公寓写字楼别墅要将上面的内容变为住宅底商-商铺商用公寓......【阅读全文】

阅读(684) | 评论(0) | 转发(0)

发布时间:2014-04-30 14:44:52

查了下,需要设置如下的参数。sysctl -w vm.zone_reclaim_mode=1关于zone_reclaim_mode的定义kernel的文档里描述如下Zone_reclaim_mode allows someone to set more or less aggressive approaches to reclaim memory when a zone runs out of memory. If it is set to zero then no zone reclaim.........【阅读全文】

阅读(1289) | 评论(0) | 转发(0)

发布时间:2014-04-30 14:30:59

为什么会这么高的icmp失败呢? 原来做bond的时候网卡连错线了。......【阅读全文】

阅读(599) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册