摘要: http://blog.csdn.net/fyh2003/article/details/6995499使用linux命令df 和du,df 但是df只能查看一级文件夹大小、使用比例、档案系统及其挂入点,但对文件却无能为力。du可以查看文件及文件夹的大小。所以基本上是两者配合使用。一、 df h参数... 阅读全文
posted @ 2015-11-25 20:48 剑风云 阅读(725) 评论(0) 推荐(0) 编辑
摘要: http://tonychiu.blog.51cto.com/656605/654776/由于ubuntu/debian软件库中有时候不同的库更新速度不一致,apt-get 出出现如下的错误提示Some packages could not be installed. This may mean t... 阅读全文
posted @ 2015-11-25 20:39 剑风云 阅读(132) 评论(0) 推荐(0) 编辑
摘要: #include#includestatic int num = 0;static char namebuf[20];static char prefix[] = "/tmp/tmp";char gentemp(){ int length,pid; //获取进程的标识符 pid =... 阅读全文
posted @ 2015-11-25 17:34 剑风云 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 3.2.4简单命令处理程序inarg.c#include"smallsh.h"static char special[]={' ','\t','*',';','\n','\0'};inarg(char c){ char *wrk; for(wrk=special;*wrk!='\0';w... 阅读全文
posted @ 2015-11-25 09:47 剑风云 阅读(153) 评论(0) 推荐(0) 编辑