随笔分类 -  Linux

摘要:#include <stdio.h>#include <string.h>#include <stdlib.h>#include <signal.h>#include <unistd.h>#include <errno.h>#include <sys/epoll.h>#include <fcntl.h>#include "aytype.h"#include "aylist.h"#include <vector>using namespace std 阅读全文
posted @ 2013-01-06 21:50 buaaspy 阅读(234) 评论(0) 推荐(0)
摘要:man sed-------------------------------------------------------------------------------------------------- g:[address[,address]]g 将hold space中的内容拷贝到pattern space中,原来pattern space里的内容清除 G:[address[,address]]G 将hold space中的内容append到pattern space\n后 h:[address[,address]]h 将pattern space中的内容拷贝到hold sp... 阅读全文
posted @ 2012-12-01 18:48 buaaspy 阅读(266) 评论(0) 推荐(0)
摘要:0.加载内核1.启动init进程(/sbin/init) /etc/rc.d/rc.sysinit 主要做在各个运行模式中相同的初始化工作 掉入keymap以及系统字体 启动swapping 设置主机名 设置NIS域名 检查并mount文件系统 打开quota 装载声卡模式 设置系统时钟 /etc/rc.d/rc-$RUNLEVEL-.d 根据/etc/inittab中指定的启动级别调用对应的启动脚本 /etc/rc.d/ |-- init.d | |-- functions | |-- l... 阅读全文
posted @ 2012-11-24 15:57 buaaspy 阅读(209) 评论(0) 推荐(0)
摘要:0.--------------------------------------------------draft mostly come from [http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/index.html]1.RPM文件格式--------------------------------------------------RPM包文件包含四节。第一节负责标记文件为一个RPM包。剩余的分别是:signature、header和payload。signature 签. 阅读全文
posted @ 2012-11-24 15:07 buaaspy 阅读(341) 评论(0) 推荐(0)