摘要: tail 命令从指定点开始将文件写到标准输出.使用tail命令的-f选项可以方便的查阅正在改变的日志文件,tail -f filename会把filename里最尾部的内容显示在屏幕上,并且不但刷新,使你看到最新的文件内容. 1.命令格式; tail[必要参数][选择参数][文件] 2.命令功能: 阅读全文
posted @ 2016-06-17 15:09 atoman 阅读(171) 评论(0) 推荐(0) 编辑
摘要: system()—执行shell命令也就是像dos发送一条指令。 相关函数:fork, execve, waitpid, popen 头文件:#include <stdlib.h> 定义函数:int system(const char * string); system("pause")可以实现冻结 阅读全文
posted @ 2016-06-05 21:43 atoman 阅读(365) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> static CHAR sucfname[100] = "";sprintf( sucfname, "%s%02d%s", "/mnt/XGeMonitor", ucSlotNo, ".txt" ); FILE *pf = fopen(sucfname, “wr 阅读全文
posted @ 2016-05-31 21:59 atoman 阅读(688) 评论(1) 推荐(0) 编辑
摘要: 创建一个文件的linux命令,参考格式如下—— vi hello.txt 保存或退出命令的操作——按ESC键 跳到命令模式,然后::w 保存文件但不退出vi:w file 将修改另外保存到file中,不退出vi:w! 强制保存,不推出vi:wq 保存文件并退出vi:wq! 强制保存文件,并退出viq 阅读全文
posted @ 2016-05-30 21:32 atoman 阅读(236) 评论(2) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-05-17 12:50 atoman 阅读(8) 评论(1) 推荐(0) 编辑