摘要: 在linux find 进行查找的时候,有时候需要忽略某些目录不查找,可以使用 -prune 参数来进行过滤,但必须要注意要忽略的路径参数必须紧跟着搜索的路径之后,否则该参数无法起作用。以下是指定搜索/home/carryf目录下的所有文件,但是会忽略/home/carryf/astetc的路径:find /home/carryf -path "/home/carryf/astetc" -prune -o -type f -print如果按照文件名来搜索则为:find /home/carryf -path "/home/carryf/astetc" -p 阅读全文
posted @ 2013-07-26 18:37 静心のboke 阅读(1810) 评论(0) 推荐(0)
摘要: 功能说明:显示或设置系统时间与日期。语 法:date[-d][-u][+%H%I%K%l%M%P%r%s%S%T%X%Z%a%A%b%B%c%d%D%j%m%U%w%x%y%Y%n%t]或date[-s][-u][MMDDhhmmCCYYss]或date[--help][--version]补充说明:第一种语法可用来显示系统日期或时间,以%为开头的参数为格式参数,可指定日期或时间的显示格式。第二种语法可用来设置系统日期与时间。只有管理员才有设置日期与时间的权限。若不加任何参数,data会显示目前的日期与时间。参 数: %H 小时(以00-23来表示)。 %I 小时(以01-12来表示)。 .. 阅读全文
posted @ 2013-07-26 18:09 静心のboke 阅读(536) 评论(0) 推荐(0)
摘要: user www www;worker_processes 8;error_log logs/nginx_error.log crit;pid logs/nginx.pid;#Specifies the value for maximum file descriptors that can be opened by this process. worker_rlimit_nofile 51200;events { use epoll; worker_connections 51200;}http { include mime.types; ... 阅读全文
posted @ 2013-07-26 16:29 静心のboke 阅读(475) 评论(0) 推荐(0)