代码改变世界

随笔档案-2012年04月

Linux Shell 快捷键

2012-04-25 12:28 by Demote, 283 阅读, 收藏,
摘要: history 显示命令历史列表↑(Ctrl+p) 显示上一条命令↓(Ctrl+n) 显示下一条命令!num 执行命令历史列表的第num条命令!! 执行上一条命令!?string? 执行含有string字符串的最新命令Ctrl+r 然后输入若干字符,开始向上搜索包含该字符的命令,继续按Ctrl+r,搜索上一条匹配的命令Alt+< 历史列表第一项Alt+> 历史列表最后一项Ctrl+f 光标向前移动一个字符,相当与->Ctrl+b 光标向后移动一个字符,相当与<-Alt+f 光标向前移动一个单词Alt+b 光标向后移动一个单词ls !$ 执行命令ls,并以上一条命令的参数 阅读全文

编译内核模块问题

2012-04-25 10:28 by Demote, 465 阅读, 收藏,
摘要: 1. 编译内核模块 执行命令make -C /usr/src/linux-2.6.32.36-0.5/ M=`pwd` modules出现错误如下:ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it.原因: 内核源码目录缺少编译config文件解决:方法1: 在源码目录中执行命令mak 阅读全文

ipmitool

2012-04-17 11:32 by Demote, 204 阅读, 收藏,
摘要: http://www.ibm.com/developerworks/cn/linux/l-ipmi/index.htmlhttp://docs.linuxtone.org/ebooks/Dell/ipmitool.pdf 阅读全文

mutex, spinlock, semaphore

2012-04-12 16:40 by Demote, 204 阅读, 收藏,
摘要: 1. http://blog.chinaunix.net/uid-20121320-id-447864.html2. http://www.hitripod.com/blog/2012/03/synchronization-mechanism-comparison-spinlock-mutex/3. http://www.ashishsharma.me/2011/08/semaphores-and-mutexes.html4. http://www.linuxidc.com/Linux/2011-03/33741.htm 阅读全文