摘要: 更改文件拥有者 chown命令 chown将指定文件的拥有者改为指定的用户或组 命令格式如下: chown [OPTION]... [OWNER][:[GROUP]] FILE...<!--more-->chown [OPTION]... --reference=RFILE FILE... 普通用户 阅读全文
posted @ 2016-10-30 22:33 fireway 阅读(1648) 评论(0) 推荐(0) 编辑
摘要: 硬链接和软链接 实例 程序打开一个文件,然后解除它的链接。执行该程序的进程然后睡眠30秒,接着就终止。 #include"apue.h" #include<fcntl.h> int main(void) { if(open("tempfile", O_RDWR)<0) { err_sys("open 阅读全文
posted @ 2016-10-23 18:31 fireway 阅读(6347) 评论(0) 推荐(1) 编辑
摘要: Android Debug Bridge Introduction Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or c 阅读全文
posted @ 2016-10-01 10:31 fireway 阅读(825) 评论(0) 推荐(0) 编辑
摘要: Android.mk This page describes the syntax of the Android.mk build file, which glues your C and C++ source files to the Android NDK. Overview <!--more- 阅读全文
posted @ 2016-09-21 22:30 fireway 阅读(330) 评论(0) 推荐(0) 编辑
摘要: Android 安全加密 引言 对称加密、非对称加密、消息摘要、数字签名等知识都是为了理解数字证书工作原理而作为一个预备知识。数字证书是密码学里的终极武器,是人类几千年历史总结的智慧的结晶,只有在明白了数字证书工作原理后,才能理解Https 协议的安全通讯机制。最终才能在SSL 开发过程中得心应手。 阅读全文
posted @ 2016-09-19 18:49 fireway 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: tmux frequently asked questions How is tmux different from GNU screen? tmux and GNU screen have many similarities. Some of the main differences I am a 阅读全文
posted @ 2016-09-18 18:14 fireway 阅读(387) 评论(0) 推荐(0) 编辑
摘要: Unix System Overview Introduction All operating systems provide services for programs they run. Typical services include executing a new program, open 阅读全文
posted @ 2016-09-16 23:39 fireway 阅读(641) 评论(0) 推荐(0) 编辑
摘要: MD5、SHA1、HMAC、HMAC_SHA1区别 引言 什么是MD5,什么是SHA1,如何校验这些Hash。还有拿单个apk文件的MD5,SHA1讯问是不是原版的问题,在这里,让我们先来了解一些基本知识,了解Hash。 Hash,一般翻译做“散列”,也有直接音译为”哈希”的,就是把任意长度的输入( 阅读全文
posted @ 2016-09-10 23:07 fireway 阅读(19750) 评论(0) 推荐(0) 编辑
摘要: Files and Directories Introduction In the previous chapter we covered the basic functions that perform I/O. The discussion centered on I/O for regular 阅读全文
posted @ 2016-09-04 22:30 fireway 阅读(825) 评论(0) 推荐(0) 编辑
摘要: File I/O Introduction We’ll start our discussion of the UNIX System by describing the functions available for file I/O—open a file, read a file, write a 阅读全文
posted @ 2016-08-28 17:28 fireway 阅读(632) 评论(0) 推荐(0) 编辑