- 博客(239)
- 资源 (179)
- 收藏
- 关注
转载 shell-Makefile
/*fun.h*/#include extern int max_fun(int x, int y); /*fun.c*/ #include "fun.h"int max_fun(int x, int y){ if( x >= y) return x; else return y;} /*main.c*/ #include
2012-10-15 15:40:02 285
转载 shell-util
#!/bin/bash#1-2-9#判断命令行是否带有两个文件名的参数if [ "$1" = "" ] || [ "$2" = "" ];then echo "Please enter file name" exit 1fi#判断目标文件是否存在if [ -e $2 ];then echo "The file already exists
2012-10-15 11:29:06 368
转载 shell-while
#!/bin/bash#1-2-8# shell 中所有的变量都是字符串型的 注释的#若紧跟在语句后 则连注释一起赋给变量#提示用户输入 -n 不换行echo -n "Please enter number :"read n #读入输入的值放到变量n中sd=0rev=""on=$n #将变量n的值保存到变量on中,方便以后使用echo "You put numb
2012-10-15 10:25:25 266
转载 ubuntu-7.10-desktop-i386.iso
http://releases.ubuntu.com/releases/gutsy/ubuntu-7.10-desktop-i386.iso
2012-10-15 10:17:33 1038
转载 shell-for
#!/bin/bash#1-2-7#变量count用于统计文件的数目count=0#变量files遍历一遍当前文件夹for files in *do #判断的files是否是文件,如果是将count变量的值加一再赋值给自己 #expr :表示数学运算 #`` 将其内的值给出 # = 两边都不能有空格 if [ -f "$files" ];t
2012-10-15 09:50:41 262
转载 shell-if
#!/bin/bash#1-2-6#将第一个命令行参数传递给变量a,第二个命令行参数传递给变量ba=$1b=$2#判断a或者b变量是否为空,只要有一个为空就打印提示语句并退出if [ -z $a ] || [ -z $b ] then echo "please enter 2 nummber" exit 1fi#只要两个参数if
2012-10-15 09:30:16 271
转载 waiting for transaction lock on /var/lib/rpm/__db.000
rpm安装出现问题,提示lock分类: Linux操作技巧2010-05-13 16:43 151人阅读 评论(0) 收藏 举报故障现象:[root@localhost Mysql4.1.14.Rhel3]# rpm -ivh MySQL*warning: waiting for transaction lock on /var/lib/rpm/__db.000
2012-10-14 21:57:40 941
转载 韦的视频列表
//韦的视频列表,部分可能收费吧 ,不过前面的就已经不错了第1期2440免费,下载后可以直接观看,下载地址:http://115.com/folder/fa55184z#http://dl.dbank.com/c03o1ebwlohttp://kuai.xunlei.com/s/knC6Biry0u8XNkoeZmcLIg第1期s3c6410共23个视频,免费,下载
2012-10-03 17:01:45 2006 2
转载 内核驱动深入班
//内核驱动深入班http://115.com/file/c2kurtwj#第1天(硬件访问).rar http://115.com/file/dpwdf1el#第2天(设备模型).rar http://115.com/file/e7i3ogz6#第3天(网卡触摸屏).zip http://115.com/file/aneidvcy#第4天(LCD驱动程序).
2012-10-02 09:10:45 564
转载 韦的一些视频
//视频很不错这个视频正在上传到dbank,115暂时没法分享新视频──以前的还可以下载。下面的迅雷地址都是QQ 呆子 同学下载后再上传到,如果想用迅雷就等一会。后缀名为.wmv.rar的文件不是压缩文件, 下载后直接把.rar后缀名去掉即可,后缀名为.rar的文件下载后,需要解压。如果文件是part1.rar, part2.rar这样的后缀,要全部下载完后,双击.
2012-10-02 09:08:28 1010
转载 vivi
vivi是韩国mizi 公司开发的bootloader, 适用于ARM9处理器。Vivi有两种工作模式:启动加载模式和下载模式。启动加载模式可以在一段时间后(这个时间可更改)自行启动linux内核,这是vivi的默认模式。在下载模式下,vivi为用户提供一个命令行接口,通过接口可以使用vivi提供的一些命令,如下: 命令 功能 Load 把二进制文件载入F
2012-09-25 12:25:51 759
转载 声明指定了两个以上的数据类型
linux下的一个编译错误:声明指定了两个以上的数据类型,出现这种错误多半是自己编写的文件中定义的结构体最后的分号没有加!!!所以一个好的习惯是在一个结构体的输入时,先输入分号,再填充数据。
2012-09-24 20:56:41 1314
转载 tftp服务器的安装与配置(不习惯windows的那个)
不习惯windows的那个。来玩linux下的tftp其实实质都一样 网上搜的! (fedora,....都是浮云)1.下载tftp服务器、客户端tftp和守护进程xinetd三个包(在ISO里都可以找到,客户端没必要安装)yum install xinetd tftp tftp-server //xinetd.i386 2:2.3.14-21.fc10//tftp-0
2012-09-21 21:42:18 1251
转载 linux系统编程之信号 test10_10.c
#include #include #include #include #include #include #include #include #include int my_printf(const char *fmt,...);void sighandler(int signum);void continuehandler(int signu
2012-09-19 15:17:40 348
转载 linux系统编程之信号 test10_9.c
#include #include #include #include #include #include #include #include int my_printf(const char *fmt,...);void sighandler(int signum);void continuehandler(int signumber);void al
2012-09-19 15:16:41 459
转载 linux系统编程之信号 test10_8.c
#include#include #include #include#include //#include void intermithandler(int signumber);void continuehandler(int signumber);void terminatehandler(int signumber);int main(void){
2012-09-19 15:15:45 598
转载 linux系统编程之信号 test10_7.c
#include #include #include #include #include #include #include int my_printf(const char *fmt,...);void sighandler(int signum);void continuehandler(int signumber);char buffer[200];
2012-09-19 15:14:49 247
转载 linux系统编程之 信号 test10_6.c
#include #include //#include #include #include /* for definition of errno */#include /* ISO C variable aruments */#include static void err_doit(int, int, const char *, va_
2012-09-19 15:13:44 521
转载 linux系统编程之信号 test10_5.c
#include #include #include #include void checkmask(void);int errno_backup;int main(void){ // char buffer[100]; sigset_t blockset; errno_backup=errno; sige
2012-09-19 15:12:36 503
转载 linux 系统编程之信号 test10_4.c
#include #include #include #include #include #include #include #if defined(__Linux__)&&!defined(SI_KERNEL)#define SI_KERNEL 0x80#endifint my_printf(const char *fmt,...);v
2012-09-19 15:11:24 351
转载 linux 系统编程 之信号 test10_3.c
#include#include #include #include//#include#includevoid terminatehandler(int signumber);int main(void){ char buffer1[100],buffer2[100]; int i; struct sigaction act
2012-09-19 15:10:22 484
转载 linux 系统编程之信号 test10_2.c
#include #include #include #include #include #include /* ctrl+ c SIGINT * ctrl + z SIGTSTP ctrl + \ SIGQUIT* kill -s SIGXXX pid***/void intermitha
2012-09-19 15:09:20 500
转载 linux 系统编程 之信号 test10_1.c
#include #include #include #include //#include ??#include void terminatehandler(int signumber);int main(void) { char buffer1[100],buffer2[100]; int i; if(sign
2012-09-19 15:06:44 515
转载 黑客攻破SQL服务器系统的十种方法
黑客攻破SQL服务器系统的十种方法 无论是使用手工试探还是使用安全测试工具,恶意攻击者总是使用各种诡计从你的防火墙内部和外部攻破你的SQL服务器系统。既然黑客在做这样的事情。你也需要实施同样的攻击来检验你的系统的安全实力。这是理所当然的。下面是黑客访问和攻破运行SQL服务器的系统的十种诡计。1.通过互联网直接连接这些连接可以用来攻击没有防火墙保护、全世界都可
2012-09-17 12:02:53 949
转载 System.map
System.map文件的作用有关System.map文件的信息好象很缺乏。其实它一点也不神秘,并且在整个事情当中它并不象看上去那么得重要。但是由于缺乏必要的文档说明,使其显得比较神秘。它就象耳垂,我们每个人都有,但却不知道是干什么用的。本网页就是用来说明这个问题的。注意,我并不会是百分之一百正确的。例如,一个系统很可能没有/proc文件系统支持,但是大多数系统肯定有。这里我假定你是“随大
2012-09-01 17:49:53 470
转载 linux2.3.14 内核配置大体思路
Linux内核配置 内核,是一个操作系统的核心。它负责管理系统的进程、内存、设备驱动程序、文件和网络系统,决定着系统的性能和稳定性。Linux作为一个自由软件,在广大爱好者的支持下,内核版本不断更新。新的内核修订了旧内核的bug,并增加了许多新的特性。如果用户想要使用这些新特性,或想根据自己的系统度身定制一个更高效,更稳定的内核,就需要重新编译内核。本文将以RedHat L
2012-09-01 17:47:59 461
转载 linux内核编译常见指令介绍
这次主要说一下Linux(RedHat9)内核的升级 [主版本].[次版本].[修订版本]-[附版本] 2 4 20 8 1. 如果次版本是奇数的话,例如2.3, 2.5 等等,那表示他是一个『测试性质功能的核心版本』, 这种核心通常是在推出稳定版本的核心之前,用来给developer ( 核心维护更新测试者!) 测试用的! 虽然功能较为强大,但是是属于测试性质,可能会有些许的bug
2012-09-01 16:02:49 506
转载 linux软件安装
一、什么是源码包软件; 顾名思义,源码包就是源代码的可见的软件包,基于Linux和BSD系统的软件最常见;在国内源可见的软件几乎绝迹;大多开源软件都是国外出品;在国内较为出名的开源软件有fcitx;lumaqq;Lumaqq及scim等;但软件的源代码可见并不等于软件是开源的,我们还要以软件的许可为准;比如有些软件是源码可见的,但他约定用户只能按他约定的内容来修改;比如vbb论坛程序;所以
2012-09-01 15:53:47 284
原创 /linux-3.4.7/README
Linux kernel release 3.x These are the release notes for Linux version 3. Read them carefully,as they tell you what this is all about, explain how to install thekernel, and what to do if so
2012-07-31 15:30:46 469
转载 第三天 进程控制
getpid();getppid();/*getpid.c*/#include #include #include #include int main(){printf("PID=%d\n",getpid());printf("PPID=%d\n",getppid());return 0;}/*fo
2012-07-28 14:01:34 233
转载 第二天 时间编程
time();gmtime();localtime();asctime();ctime();sleep();usleep();/*time1.c*/#include #include int main(void){struct tm *local;time_t t;t=time(NULL);local=localt
2012-07-28 13:44:36 291
转载 第二天 文件编程 函数库方式
/*fgetc.c*/#include int main(){FILE *fp;char ch;if((fp=fopen("c1.txt","rt"))== NULL){printf("\nCannot open file strike any key exit!");getchar();exit(1);}ch=fgetc(fp);
2012-07-28 13:36:13 237
转载 第二天 文件编程 系统调用方式
/*file_creat.c*/1 #include 2 #include 3 4 #include 5 #include 6 #include 7 8 void create_file(char *filename) 9 { 10 if( creat(filename,0755) 11
2012-07-28 13:24:39 296
转载 Linux下删除文件和文件夹
一、Linux下删除文件和文件夹常用命令如下:删除文件: rm file删除文件夹: rm -rf dir需要注意的是, rmdir 只能够删除 空文件夹。二、删除制定文件(夹)之外的所有文件呢?1、方法1,比较麻烦的做法是:复制需要保留的文件到其他文件夹,然后将该目录删除, 然后将需要保留的移动 回来。mv keep ../ #保留文件(夹) keeprm -rf
2012-07-27 12:33:46 643
转载 RHEL5下vi语法高亮的问题
RHEL5下vi语法高亮的问题在RHEL5下面,如果使用root登录,执行vi,发现没有语法高亮等特性(.vimrc里面已经打开了语法高亮特性),必须执行vim才可以。而使用其他非特权用户登录就不存在这个问题。这让我感到有点奇怪,为什么root和其他非root用户会不一样?通常Linux下面都会设置alias vi=vim;我最常用的是Debian,在D
2012-07-27 12:29:04 346
转载 vim 语法高亮等设置
vim 语法高亮等设置 一、基本编辑功能1、复制、剪切和粘贴复制特定的某一段:把光标移到要复制的文本的头部,按下“v”,往后移动光标,光标所过之处的字符>都会高亮,移到欲复制文本的尾部后,按下“y”,高亮文本全部被复制到剪粘板。复制某一行:把光标移到要复制的那一行,按下“yy”,该行就被复制到剪粘板。剪切特定的某一段:把光标移到要剪切的文本的头部,按下“
2012-07-27 12:20:14 829
转载 单链表
#include #include #include struct STU{char name[20];char stuno[10];int age;int score;}stu[50];typedef struct STU ElemType ;struct LNODE{ElemType data;struct LNODE *next;};
2012-07-23 19:47:45 283
转载 linux 常用数学函数
abs(计算整型数的绝对值) 相关函数 labs, fabs 表头文件 #include 定义函数 int abs (int j) 函数说明 abs()用来计算参数j的绝对值,然后将结果返回。 返回值 返回参数j的绝对值结果。 范例 #ingclude main(){ int ansert
2012-06-30 20:23:54 574
转载 putty使用
我的这些文字是从这几年来的 PuTTY 使用经验中慢慢得来的,也不仅仅是介绍 PuTTY,还包括了一些相关的软件,比如:优秀的 FTP 工具 FileZilla、功能强大的 SFTP 客户端 WinSCP。杂七杂八的乱说了一些,这里把大致内容罗列如下: 最简单的使用,登录 SSH 主机 中文乱码的处理 PuTTY 常用配置的说明 复制、粘贴 保存会话 注销 自动登录用户名
2012-06-30 19:44:06 1959
转载 生日问题
小明和小强都是张老师的学生,张老师的生日是M月N日,2人都知道张老师的生日 2005-10-22 21:10 提问者: 筱岚Q | 浏览次数:251587次伤脑筋啊,高人来指点一下啊问题补充: 小明和小强都是张老师的学生,张老师的生日是M月N日,2人都知道张老师的生日 是下列10组中的一天,张老师把M值告诉了小明,把N值告诉了小强,张老师问他们知道他的生日是那一天吗? 3月
2012-06-30 19:38:39 492
[GNU.Make.项目管理].Robert.Mecklenburg著.扫描版.pdf )
2013-01-09
[VISUAL.C.项目开发案例全程实录].明日科技刘锐宁,梁水,李伟明.扫描版.part2.rar
2013-01-09
[VISUAL.C.项目开发案例全程实录].明日科技刘锐宁,梁水,李伟明.扫描版.part1.rar
2013-01-09
zephyr-v1.6.0.tar.gz
2017-03-11
SuperVivi-Transfer-Tool-Complete.zip
2014-09-21
软件仓库 repo
2013-05-11
Beginning_Nokia_Apps_Development_Using_MeeGo_Mobile_QT_and_OpenSymbian .pdf )
2013-03-28
[专业PDF转换Word-PPT-Excel工具].AnyBizSoft.PDF.Converter.rar
2013-01-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人