1.获得进程ID号:(假设有一个叫做gedit的应用程序在运行,可以使用pgrep命令获取gedit的进程ID)$pgrepgedit125012.查看运行时候进程的环境变量cat/proc/$PID/environ3.获得字符串长度length=${#var}4.识别当前所使用的shellecho$SHELLecho$05.检查是否为超级用户UUID是一个重..
分类:
其他好文 时间:
2015-07-28 06:49:32
阅读次数:
213
mount/dev/sdb5/tmp挂载sdb5分区到/tmp下mountLABEL=game/tmp用标签挂载,也可用UUID来挂载umount/tmp卸载磁盘挂载的目录,来卸载磁盘。umount/dev/sdb5指定分区来卸载umount-l/dev/sdb5用户不必退出该分区目录,强制卸载磁盘mount-a重新挂载fstab中未挂载的分区,常用来测试配..
分类:
其他好文 时间:
2015-07-27 16:39:51
阅读次数:
125
一、安卓:MAC:接入网络的设备的序号,唯一值。用 16 进制数表示,由 0-9,A-F 组成,如:44:2A:60:71:CC:82 Uuid正则表达式:^([0-9a-fA-F]{2})(([/\s:][0-9a-fA-F]{2}){5})$更加严格的话,其实分割符也没有空格---^([0-9a...
分类:
系统相关 时间:
2015-07-26 18:53:40
阅读次数:
4397
虚拟机克隆后网卡变成eth1,改变的方法如下:1、vim/etc/udev/rules.d/70-persistent-net.rules删除上面两行,改红框里的位eth02、vim/etc/sysconfig/network-scripts/ifcfg-eth0删除uuid和mac地址,修改ip3、卸载网卡modprobe-re10004、装载网卡modprobee10005、重启servicene..
分类:
其他好文 时间:
2015-07-26 06:23:08
阅读次数:
125
常用SQL语句,仿照着写(只改动字段和表名,库名)查看数据库引擎 SHOW ENGINES;(默认InnoDB)用数据库生成UUID select uuid();修改列名和列类型 alter table student change name username varchar(20);显...
分类:
数据库 时间:
2015-07-25 19:48:09
阅读次数:
155
一、概述 1.IOS中的沙盒机制(SandBox)是一种安全体系,沙盒的本质就是一个文件夹,名字是通过UUID符分配,它包含了三个文件Document文件夹、Library文件夹、tmp文件夹,它规定了应用程序只能在为该应用创建的文件夹内读取文件,不可以访问其他地方的内容。所有的非代码文件都保存.....
分类:
其他好文 时间:
2015-07-25 19:44:51
阅读次数:
138
1 // 发现资产主键2 @Id3 @GeneratedValue(generator="system-uuid")4 @GenericGenerator(name="system-uuid",strategy="uuid")5 private Long id;G...
分类:
编程语言 时间:
2015-07-24 17:48:44
阅读次数:
476
1. deviceToken与UUID,UDID的区别
deviceToken :
A token that identifies the device to APS. The token is an opaque data type because that is the form that the provider needs to submit to the APS server...
分类:
移动开发 时间:
2015-07-23 23:59:33
阅读次数:
2670
网络设置: 1、命令:vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=00:0C:29:34:11:33 TYPE=Ethernet UUID=6a0e083b-7d65-4afe-9d6f-f42f97659...
分类:
其他好文 时间:
2015-07-21 12:07:37
阅读次数:
132
1、需要的jar包: itcast-tools-1.4.jar http://pan.baidu.com/s/1Dbo2i commons-beanutils-1.8.3.jar http://pan.baidu.com/s/1Dbo2i commons-logging-1.1.1.jar...
分类:
编程语言 时间:
2015-07-20 21:24:14
阅读次数:
158