find 命令eg:一般文件查找方法:1. find /home -name file , 在/home目录下查找文件名为file的文件2. find /home -name '*file*' , 在/home目录下查找文件名包含file的文件3. find /home -name 'file*' ...
分类:
系统相关 时间:
2014-08-12 18:37:24
阅读次数:
270
System.IO.File类和System.IO.FileInfo类主要提供有关文件的各种操作,在使用时需要引用System.IO命名空间。下面通过程序实例来介绍其主要属性和方法。(1) 文件打开方法:File.Open () 该方法的声明如下: public static FileStream....
分类:
其他好文 时间:
2014-08-12 18:32:14
阅读次数:
247
完美解决Excel 2007、2010在不同窗口打开文件首先打开注册表 开始-运行-regedit其中Excel.Sheet.8下面改的是针对.xls后缀的文件,Excel.Sheet.12是针对.xlsx后缀的文件。1.左边一栏找到:HKEY_CLASSES_ROOT/Excel.Sheet.12...
分类:
其他好文 时间:
2014-08-12 18:27:54
阅读次数:
236
清空文件内容1. echo "" > yourfile2. > yourfile3. cat /dev/null > yourfile
分类:
系统相关 时间:
2014-08-12 18:20:54
阅读次数:
209
今天遇到了这个问题,之前找了半天原来是IO事件的socket描述符在epoll_ctl()处理之前关闭了。if(epoll_ctl(epollFd, EPOLL_CTL_DEL, ev->fd, &epv) fd, strerror(errno));在删除事件 epoll_ctl(kdpfd, EP...
分类:
其他好文 时间:
2014-08-12 18:18:34
阅读次数:
302
Linux中exec的用法总结先总结一个表:exec命令作用execls在shell中执行ls,ls结果显示结束后不返回原来的的目录中,而是/(根目录)execfile将file中的内容作为标准写出exec3file将写入fd4中的内容写入file中ls>&4Ls将不会有显示,直接写入fd4中了,即...
分类:
系统相关 时间:
2014-08-12 18:03:24
阅读次数:
232
#!/bin/bash
#unzip?zip&tar?file
function??untarfile(){
for?i?in?$(?ls?.?|grep?-v?.sh)
do
val=$(echo?$i?|?grep?".zip$"?|wc?-l)
if?[[?"$val"??-eq??1?]];then
dirname=$(echo?...
分类:
其他好文 时间:
2014-08-12 17:47:04
阅读次数:
237
<formaction=""method="post"enctype="multipart/form-data">
请选择要上传的文件:<inputtype="file"name="myFile"value=""/><inputtype="submit"value="开始上传"/>
</form>
<?php
header("content-type:text/html;charset=utf-8");
echo"<pre..
分类:
其他好文 时间:
2014-08-12 17:38:15
阅读次数:
204
如何使普通用户创建的文件具有超级用户的权限呢...
分类:
其他好文 时间:
2014-08-12 17:31:34
阅读次数:
253