前言:我们为什么要学会使用find命令?转自:http://blog.chinaunix.net/uid-24648486-id-2998767.html每一种操作系统都有成千上万的文件组成,对于linux这样“一切皆文件”的操作系统来说更不例外,大家应该都能很轻松使用windows下的文件查找功能...
分类:
系统相关 时间:
2014-07-22 23:10:56
阅读次数:
608
原地址:http://www.cnblogs.com/svage/p/3700122.html1、删除目录及子目录下的 .svn目录 find . -type
d -name ".svn" | xargs rm -rf2、/tmp 目录的权限drwxrwxrwt rwt的意思是:对目录有执行权...
分类:
系统相关 时间:
2014-07-22 23:09:34
阅读次数:
552
本图整理了一些bash编程常用的语法、特殊变量,遗忘之时可快速查找,不用再去翻书了。
分类:
其他好文 时间:
2014-07-22 23:09:15
阅读次数:
287
查看当前目录下的文件:find.-typef查看当前目录下的文件夹:find.-typed如果文件file1不为空:if[-sfile1];thenecho"file1不为空"fi#!/bin/shforfin`find./testdir-typef`;doif[-s$f];thenecho$fis...
分类:
系统相关 时间:
2014-07-22 23:09:14
阅读次数:
407
Single NumberGiven an array of integers, every
element appearstwiceexcept for one. Find that single one.Note:Your algorithm
should have a linear runti...
分类:
其他好文 时间:
2014-07-22 23:07:14
阅读次数:
337
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-07-22 23:07:13
阅读次数:
379
1)高光乳胶漆,一般耐久性较好、漆膜致密,使用于对漆膜坚硬及耐久性有一定要求的地方(如人流密集处,不希望有乱涂乱抹现象处),但高光涂料反射性较强,会暴露基层不平整的缺陷。2)半光乳胶漆,光泽度比高光乳胶漆要小,一般而言,也具备较好的耐沾污性和耐擦洗性。3)丝光乳胶涂料,这一等级的光泽还包括Satin...
分类:
其他好文 时间:
2014-05-01 15:32:50
阅读次数:
934
1.if 是单分支语句,使用格式如下: if condition ; then statement
….. fi 2.if … else 是双分支语句,使用格式如下: if condition ; then statement …. else
statement …. fi 3.if …elif…e...
分类:
其他好文 时间:
2014-05-01 13:53:51
阅读次数:
356
//
查找满足指定条件的结果中的第一行$post=Post::model()->find($condition,$params);//
查找具有指定主键值的那一行$post=Post::model()->findByPk($postID,$condition,$params);//
查找具有指定属性...
分类:
数据库 时间:
2014-05-01 01:59:01
阅读次数:
411
" checking for SSL headers... configure: error: Cannot find ssl headers"
原因是缺少openssl-devel,安装这个库就可以解决问题。
yum -y install openssl-devel...
分类:
其他好文 时间:
2014-04-27 21:32:05
阅读次数:
283