随笔分类 -  技术-Linux

摘要:# check pointed auther commit git log --author="Author Name" # check pointed period commit git log --since="2012-2-23" --before="2012-2-24" # search in commit messages git log --grep="key word" # ... 阅读全文
posted @ 2016-04-15 14:12 阿青1987 阅读(280) 评论(0) 推荐(0)
摘要:how to restore 'git reset –hard' operations Table of Contents 1. emulate git reset –hard 1.1. generate two commits 1.2. check the commits 1.3. reset – 阅读全文
posted @ 2016-04-13 14:30 阿青1987 阅读(267) 评论(0) 推荐(0)
摘要:ref:http://stackoverflow.com/questions/23455761/set-mark-command-not-working-emacs-with-c-spcUbuntu 14.04 has an open bug affecting some desktop envir... 阅读全文
posted @ 2015-12-03 16:37 阿青1987 阅读(276) 评论(0) 推荐(0)
摘要:ubuntu curl upload file to apache2 serverTable of Contents1. install2. get web info3. set php upload conditions3.1. ref3.2. upload_max_fileszie3.3. po... 阅读全文
posted @ 2015-12-02 13:57 阿青1987 阅读(874) 评论(0) 推荐(0)
摘要:1. add the ppasudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ trusty partner' >> /etc/apt/sources.list.d/canonical_partner.list"2. update s... 阅读全文
posted @ 2015-11-09 10:03 阿青1987 阅读(198) 评论(0) 推荐(0)
摘要:How To Make Cscope Database by ShellTable of Contents1. key point - find2. shell code1 key point - find# expr1 -o expr2# Or; expr2 is not evaluated ... 阅读全文
posted @ 2015-09-09 22:55 阿青1987 阅读(187) 评论(0) 推荐(0)
摘要:Linux Opendir and readdir will not update along with directory changingTable of Contents1. Result2. temporary fix method3. Test1 ResultAccording to my... 阅读全文
posted @ 2015-09-01 22:38 阿青1987 阅读(186) 评论(0) 推荐(0)
摘要:Linux Format Udisk As Ext3 formatTable of Contents1. show u-disk info2. format entire u-disk3. show format result4. solve "Disk /dev/sdb doesn't conta... 阅读全文
posted @ 2015-08-20 09:59 阿青1987 阅读(423) 评论(0) 推荐(0)
摘要:linux 下进行C编程基础Table of Contents1. 源程序的编译2. 简单Makefile 的编写3. 程序库的链接4. 程序的调试5. 头文件和系统求助1 源程序的编译在linux 下,如果要编译一个C源程序,我们要使用 GNU 的gcc 编译器。 下面我们以一个例子说明如何使用 ... 阅读全文
posted @ 2015-07-25 00:09 阿青1987 阅读(195) 评论(0) 推荐(0)
摘要:S shell learning note v1.0Table of Contents1. what is shell2. hello world program2.1. src2.2. add run privilege2.3. run shell3. variables in shell3.1.... 阅读全文
posted @ 2015-07-23 22:32 阿青1987 阅读(186) 评论(0) 推荐(0)
摘要:1、windows 下编辑好的文件 asm_compile.txt,在 linux 下显示如下:$ cat -v asm_compile.txt 1) ml.exe /c /coff /I d:\masm32\include reg_test.asm^M2) link.exe /subsystem:... 阅读全文
posted @ 2015-07-22 23:14 阿青1987 阅读(289) 评论(0) 推荐(0)
摘要:Ref:https://www.cyphar.com/blog/post/getting-into-linux-kernel-developmentI don't know about you, but I've always found the idea of operating system k... 阅读全文
posted @ 2015-07-16 08:33 阿青1987 阅读(178) 评论(0) 推荐(0)
摘要:交叉编译生成的 libaa.so 及其测试程序 aa_test 在 imx6 开发板上运行时,有如下错误提示:error while loading shared libraries: libaa.so将 libaa.so 放到 imx6 开发板中的 /usr/lib/ 目录下后,再运行,问题解决。 阅读全文
posted @ 2015-06-08 14:48 阿青1987 阅读(380) 评论(0) 推荐(0)
摘要:1、动态链接库的制作动态链接库与普通的程序相比,没有main函数。 通过 -shared 和 -fPIC 编译参数产生 .so 动态链接库文件。程序在调用库函数时只要链接上这个库即可。1)编写动态库代码定义头文件 reader.h#ifndef READER_H_#define READER_H_i... 阅读全文
posted @ 2015-06-08 13:48 阿青1987 阅读(299) 评论(0) 推荐(0)
摘要:对以下代码进行编译:int main(){ int a[] = {1,2,3}; return 0;}$ gcc -g arrays.c -o arrays$ gdb arrays(gdb) break main(gdb) run(gdb) next1)可以使用 print 显示内容, ... 阅读全文
posted @ 2015-05-18 09:27 阿青1987 阅读(2195) 评论(0) 推荐(0)
摘要:用户程序中的 read() 经C库中的 read() 包装器进入内核后调用 系统调用处理程序 system_call(),最终由system_call() 调用 系统调用 sys_read() 阅读全文
posted @ 2015-05-14 09:02 阿青1987 阅读(207) 评论(0) 推荐(0)
摘要:可用于查看及设置 imx5, imx6的寄存器http://boundarydevices.com/i-mx5x-device-register-access/https://github.com/boundarydevices/imx-utils1)将下载后的 devregs_imx6x.dat ... 阅读全文
posted @ 2015-05-12 14:22 阿青1987 阅读(1244) 评论(0) 推荐(0)
摘要:0xAX 在这一块走的很远呀~https://github.com/0xAX/linux-insides涉及:bootingconceptsdatastructuresinitializationtheorymm 阅读全文
posted @ 2015-05-11 09:12 阿青1987 阅读(239) 评论(0) 推荐(0)
摘要:一、语法find [directories] [expression]二、参数说明-name pattern // pattern 为待查找文件配置格式,允许使用通配符,通配符前需要加转义字符如, \*,\?-type t // t 可为 f (文件),d (目录),l (符号连接),b (块设备)... 阅读全文
posted @ 2015-05-04 17:02 阿青1987 阅读(183) 评论(0) 推荐(0)
摘要:1、MakefileKDIR=/home/xxx/s-linux-3.0.35PWD:=$(shell pwd)# kernel modulesobj-m := globalmem.omodules: make -C $(KDIR) M=$(PWD) modulesclean: rm -... 阅读全文
posted @ 2015-04-28 16:32 阿青1987 阅读(698) 评论(0) 推荐(0)