码迷,mamicode.com
首页 >  
搜索关键字:cat 深入用法    ( 24066个结果
SHELL AWK 循环求和
1、简单求和,文件如下:[linux@test /tmp]$ cat test123.52125.54126.36求和:[linux@test /tmp]$ awk '{sum += $1};END {print sum}' test375.422、过滤条件求和:[linux@test /tmp]$...
分类:系统相关   时间:2014-11-04 19:21:14    阅读次数:334
linux的mtime,atime,ctime区分
mtime:modificationtime当该档案的【内容数据】变更时,就更新时间>内容数据】指档案的内容,而不是属性或权限例子:查看man.config的mtime,发现是2006-07-13[root@localhost~]#ls-l/etc/man.config-rw-r--r--1rootroot46172006-07-13/etc/man.config然后我先备份,再用vi编..
分类:系统相关   时间:2014-11-04 17:38:05    阅读次数:185
puppet 笔记
1、创建模块目录结构注意:在未指定modulepath搜索路径的情况下,会有默认搜索路径的,可通过以下方式查看到[root@puppetmaster~]#puppetmaster--genconfig>/etc/puppet/puppet.conf.out [root@puppetmaster~]#cat/etc/puppet/puppet.conf.out|grepmodulepath modulepath=/e..
分类:其他好文   时间:2014-11-04 15:20:53    阅读次数:248
linux目录配置
FHS针对目录树结构定义出的三层目录:/根目录:与开机/还原/系统修复有关/usr(unixsoftwareresource):与软件安装执行有关/var(variable):与系统运行过程有关/bin:放置单人维护模式下还能够操作的指令(cat,chmod,chown,date,mv,mkdir,cp,bash)/boot:放置开机使用的档案,包括lin..
分类:系统相关   时间:2014-11-04 15:19:38    阅读次数:201
Linux平台下裸设备的绑定:
Linux平台下裸设备的绑定:运用RAW绑定方法一 raw的配置(1)[root@qs-dmm-rh2 mapper]# cat /etc/rc.local #!/bin/sh## This script will be executed *after* all theother init scri...
分类:系统相关   时间:2014-11-04 13:04:29    阅读次数:286
JavaSE_1 基本概念续集
多态:父类型的引用可以指向子对象。Parentp=newChild();当使用多态方式调法时,首先检查父类中是否有sing()方法,如果没,则编译错误;如果有,再去调用子类的sing()方法。两种强制类型转换向上类型转换(向上类型转换(upcast):比如说将比如说将Cat类型转换为Animal类型,..
分类:编程语言   时间:2014-11-04 06:58:17    阅读次数:199
黄聪:使用$.getJSON解决ajax跨域访问 JQuery 的跨域方法(服务器端为wordpress程序)
客户端:slug; ?>"/>/?slug; ?>="/>点击加载5条资讯服务器端: $count, 'offset'=> $limit, 'category' => get_category_by_slug($cat)->term_id,'post_status' => 'publish'); ....
分类:Web程序   时间:2014-11-03 22:18:55    阅读次数:164
黄聪:wordpress如何获取当前分类页面的ID、名称、别名(slug)
slug;?>get_category() 根据分类ID获得指定分类全部信息,以数组或是对象的形式返回,以下是该函数的返回值示例:stdClass Object( //ID 分类和标签混编[term_id] => 5//分类名[name] => Cat Name //分类别名 [slug] => c...
分类:其他好文   时间:2014-11-03 20:49:09    阅读次数:252
LtUpload上传组件
* @license http://opensource.org/licenses/BSD-3-Clause New BSD License * @version svn:$Id: Upload.php 2014-11-2 22:12:32Z iuyes@qq.com $ *//** * @cat....
分类:Web程序   时间:2014-11-03 16:02:44    阅读次数:346
linux 系统参数
一、CPU大小 [root@idc ~]# more /proc/cpuinfo可以看到详细内容或:[root@idc ~]# cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id" model na...
分类:系统相关   时间:2014-11-03 12:57:04    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!