摘要:
#include <iostream>using namespace std;int main() { union endian { int data; char ch; }test; test.data=0x12345678; if(test.ch == 0x78) cout << "little 阅读全文
posted @ 2015-11-05 22:14
PKICA
阅读(497)
评论(0)
推荐(0)
摘要:
一.通过系统仓库安装 $ sudo apt-get install mysql-server 1、使用SHOW语句找出在服务器上当前存在什么数据库:mysql> SHOW DATABASES; 2、创建一个数据库abccs mysql> CREATE DATABASE abccs; 3、选择你所创建 阅读全文
posted @ 2015-11-05 21:13
PKICA
阅读(586)
评论(0)
推荐(0)
摘要:
code的时候eclipse背景色。。。。。。 RGB(红,绿,蓝):204,232,207 CSS,16进制:#CCE8CF opera浏览器设置护眼色: 获取扩展, 输入"ESI",编辑填写: 阅读全文
posted @ 2015-11-02 21:39
PKICA
阅读(370)
评论(0)
推荐(0)
摘要:
『正规表示法与通配符是完全不一样的东西!』这很重要喔!因为『通配符 (wildcard) 代表癿是 bash 操作接口癿一个功能』,但正觃表示法则是一种字符串处理癿表示方式 . (小数点):代表『一定有一个任意字符』癿意思; * (星星号):代表『重复前一个 0 到无穷多次』癿意思,为组合形态 阅读全文
posted @ 2015-11-01 22:01
PKICA
阅读(319)
评论(0)
推荐(0)
摘要:
[root@www ~]# cut -d'分隑字符' -f fields <==用亍有特定分隑字符[root@www ~]# cut -c 字符区间<==用亍排列整齐癿讯息选项不参数:-d :后面接分隑字符。与 -f 一起使用;-f :依据 -d 癿分隑字符将一段讯息分割成为数段,用 -f 叏出第几... 阅读全文
posted @ 2015-11-01 20:50
PKICA
阅读(264)
评论(0)
推荐(0)
摘要:
; 不考虑挃令相关性癿连续挃令下达 eg. # sync; sync; shutdown -h now 『若前一个挃令执行癿结果为正确,在 Linux 底下会回传一个 $? = 0 癿值』。 那么我们怎么透过这个回传值杢刞断后续癿挃令是否要执行呢?这就得要藉由『 && 』及『 || 』癿帮忙了!注意 阅读全文
posted @ 2015-11-01 20:35
PKICA
阅读(3)
评论(0)
推荐(0)
摘要:
Be careful!./andsourcearenot quite the same../scriptruns the script as an executable file, launching anew shellto run itsource scriptreads and execute... 阅读全文
posted @ 2015-11-01 19:05
PKICA
阅读(202)
评论(0)
推荐(0)
摘要:
$ 本shell 的PID,这个变量只读 $echo $$ PPID存储子shell父进程的ID(也就是主shell)。UID存储了执行这个脚本的当前用户ID echo "PPID of this script: $PPID"echo "UID of this script: $UID" # ech 阅读全文
posted @ 2015-11-01 16:53
PKICA
阅读(173)
评论(0)
推荐(0)
浙公网安备 33010602011771号