![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unix
jackyy313
这个作者很懒,什么都没留下…
展开
-
Ftrace
最近得知有这个内核跟踪工具,找到几个介绍性的文章,供以后研究。《ftrace简介》http://www.ibm.com/developerworks/cn/linux/l-cn-ftrace/index.html《用Ftrace跟踪内核模块》http://blog.csdn.net/defeattroy/archive/2010/05/23/5618099.aspx《使用ftrace抓Linux内核函数调用轨迹》http://blogold.chinaunix.net/u3/93140/showart_19原创 2011-04-11 23:22:00 · 432 阅读 · 0 评论 -
Shell判断进程并kill
找到两种方法判断进程并kill,以gst-lauch-0.10为例: ps -ef | grep gst-launch | awk '{print $2}' | xargs kill -9此方法会有错误信息出现“kill 5018: No such process”。原因是grep进程会在kill之前消失,可用下面方法来解决。 if [ "$(ps -ef | grep gst原创 2011-11-08 23:10:30 · 2197 阅读 · 0 评论 -
Disable Fireware and SELinux
From http://hi.baidu.com/leonkuo1984/blog/item/4fe1170e1f285cec37d122ca.html http://www.kklinux.com/html/Love-Linux/Fedora/200808/08-229.htmlhttp://www.cyberciti.biz/faq/disable-linux-firewall-und转载 2011-10-31 15:56:24 · 547 阅读 · 0 评论 -
遍历指定目录下指定类型文件的方法集锦
因需要处理指定目录下某种类型的所有文件,寻找到了不少方法,做此集锦,抛砖引玉,欢迎补充。以下以遍历当前目录下“.txt”类型的文件并显示为例。 Windows批处理脚本命令:dir *.txt /b /a-d /s Linux Shell脚本命令:find原创 2011-09-25 23:16:41 · 1513 阅读 · 2 评论 -
ld.so.conf 文件与PKG_CONFIG_PATH变量
From http://hi.baidu.com/dexinmeng/blog/item/5512cf018b8941d5277fb571.html 一、编译和连接一般来说,如果库的头文件不在 /usr/include 目录中,那么在编译的时候需要用 -I 参数指转载 2011-08-26 13:15:42 · 585 阅读 · 0 评论 -
PKG_CONFIG_PATH与LD_LIBRARY_PATH
转载文章《ld.so.conf文件与PKG_CONFIG_PATH》主要是因为在编译libsoup (http://git.gnome.org/browse/libsoup) 时遇到如下错误信息,而在编译libsoup之前确实下载、编译、安装过了glib (http://ft原创 2011-08-26 14:36:11 · 1191 阅读 · 0 评论 -
Subverion (SVN) through proxy
Extracted from http://www.mikepot.com/1544.htmlMaking SVN work through the Squid proxy server needs special settings in the configurat转载 2011-08-24 09:44:52 · 1275 阅读 · 0 评论 -
Fedora 14 下安装配置Apache, MySQL和PHP
参照 http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-fedora-14-lamp, 在Fedora 14下安装配置Apache, MySQL和PHP。后来,看到一原创 2011-09-06 16:25:53 · 539 阅读 · 0 评论 -
pkg-config找不到安装过的包
编译一测试工具时,遇到Makefile里面有一行: gcc `pkg-config --libs --cflags libva libva-x11` -I/usr/include subpic.c -o subpic 编译出现了错误,找不到libva库。搜索得知,原创 2011-03-22 22:55:00 · 4063 阅读 · 1 评论 -
git
This is first time to use git to commit code. Here are some commands for quick start from http://git-scm.com/原创 2011-06-02 21:50:00 · 313 阅读 · 0 评论 -
Shell读取文件时变量作用域
摘自http://hi.baidu.com/ljwan12/blog/item/0e67b4affa83f3c47cd92adc.html while read linedo str[$i]=$line1 echo $i echo ${str[i]} let i=i+1done len=${#str[@]}echo $len转载 2011-11-09 01:39:09 · 621 阅读 · 0 评论