上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: ... ... 阅读全文
posted @ 2014-03-01 19:54 范辉 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Perl 常用的命令行参数 -i:将处理结果直接写入文件,可以通过 -i.bak 或 -i"/tmp/orig_*" 等形式,在修改之前进行备份 -e:启用 perl 的命令行模式,perl 默认是执行脚本文件,必备选项 -n:按行处理,以类似 grep 的方式逐行读取文件进行处理 -a:将读入的内 阅读全文
posted @ 2014-02-13 17:54 范辉 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 三种正则模式: 匹配:m//,其中前缀 m 可省略 替换:s/// 转化:tr/// 操作符: =~:存在匹配项则返回结果 !~:不存在匹配项则返回结果 修饰符: i:忽略大小写,如:s/.../.../i m:默认情况下,会将匹配目标(一个字符串)整体当成一行,即使其中存在换行符;开启此多行模式后 阅读全文
posted @ 2014-02-13 09:55 范辉 阅读(232) 评论(0) 推荐(0) 编辑
摘要: //标准库自带函数,通常以 daemon(0, 0) 方式调用 int daemon(int nochdir, int noclose) Linux: #include <unistd.h> FreeBSD: #include <stdlib.h> //自主实现原理如下 //自主实现原理如下 [a] 阅读全文
posted @ 2013-12-21 10:29 范辉 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 一、系统脚本位置及含义 /etc/inittab、/etc/init/* 存放开关机配置文件 /etc/init.d/* 服务脚本,是一个到/etc/rc.d/init.d/的软链接 /etc/rc.d 存放各个运行level的开关机脚本,均为指向/etc/init.d目录的软链接 /etc/rc. 阅读全文
posted @ 2013-09-07 20:48 范辉 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 一、yum配置文件位置 /etc/yum.conf /etc/yum.repos.d/*.repo 二、yum常用命令 install pkgs reinstall pkgs update pkgs update-to check-update erase pkgs list installed/u 阅读全文
posted @ 2013-08-23 22:17 范辉 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 一、sed查漏补缺 1、sed x,+y,从第x行的开始,向下连续y行(包含x行在内是y+1行!) 2、sed 1~2,从第1行开始,步进为2行,此例中显示奇数行 3、sed -n '/root/!p',显示不包含root的行(较少使用) 4、sed -i.bak '',原地修改文件之前进行备份,类 阅读全文
posted @ 2013-08-08 19:33 范辉 阅读(523) 评论(0) 推荐(0) 编辑
摘要: Lacks of Knowledge 1: Linux has large amount of COMMANDS,but many of them have similar funtions,it's annoying! So,how to get the highest efficiency in 阅读全文
posted @ 2013-08-02 20:47 范辉 阅读(180) 评论(0) 推荐(0) 编辑
摘要: ABSTRACT: Daniel Robbins is best known as the creator of Gentoo Linux and author of many IBM developerWorks articles about Linux. Daniel currently ser 阅读全文
posted @ 2013-07-30 13:15 范辉 阅读(257) 评论(0) 推荐(0) 编辑
摘要: /*为节省时间,本文以汉文撰写*/ ~前言~ 深入学习正则表达式,可以很好的提高思维逻辑的缜密性;又因正则应用于几乎所有高级编程语言,其重要性不言而喻,是江湖人士必备的内功心法。 正则表达式概要(object:PCRE) 「一」匹配方向 横向视图,即按行:从左至右 纵向视图,即按列:自上而下 「二」 阅读全文
posted @ 2013-07-28 14:07 范辉 阅读(271) 评论(0) 推荐(0) 编辑
摘要: ABSTRACT: Daniel Robbins is best known as the creator of Gentoo Linux and author of many IBM developerWorks articles about Linux. Daniel currently ser 阅读全文
posted @ 2013-07-26 16:40 范辉 阅读(241) 评论(0) 推荐(0) 编辑
摘要: restrict: C语言中的一种类型限定符 (Type Qualifiers), 用于告诉编译器, 对象已经被指针所引用, 不能通过除该指针外所有其他直接或间接的方式修改该对象的内容 register 存储类用于定义存储在寄存器中而不是 RAM 中的局部变量。这意味着变量的最大尺寸等于寄存器的大小 阅读全文
posted @ 2013-06-12 13:59 范辉 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 零、UNIX 标准:ISO C、IEEE POSIX、Single UNIX Specification XSI:X/OPEN System Interface Open Group 拥有 UNIX 商标,只有遵循 XSI 的实现才能称为 UNIX SUS(Single UNIX Specifica 阅读全文
posted @ 2013-05-18 14:38 范辉 阅读(298) 评论(0) 推荐(0) 编辑
摘要: <ctype.h>:用于测试或转换字符 int isalnum(int c); 检查字符c是否是字母或数字 int isalpha(int c); 检查字符c是否是字母 int iscntrl(int c); 是否是控制字符,asni编码中000至037及177(DEL) int isdigit(i 阅读全文
posted @ 2012-10-18 18:48 范辉 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Show_Current_Time: 阅读全文
posted @ 2012-10-15 13:17 范辉 阅读(228) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页