
linux
菩提本無樹-永不放棄
这个作者很懒,什么都没留下…
展开
-
linux 各種解壓縮方法
轉載自http://www.dotblogs.com.tw/phoenixwu/archive/2008/05/22/4103.aspx.tar解壓:tar xvf FileName.tar壓缩:tar cvf FileName.tar DirName(注:tar是包裹(把多個檔案合成一個),不是壓缩!)-----------------------------转载 2013-10-27 23:53:53 · 914 阅读 · 0 评论 -
設定vim(空白 Tab...),用來判斷是否使用tab或者空白
set listchars=eol:↵,tab:»·,trail:╳,extends:»,precedes:« set list 顯示listchars設定set nolist 關閉listchars設定原创 2013-10-28 00:01:14 · 678 阅读 · 0 评论 -
pthread
ref https://computing.llnl.gov/tutorials/pthreads/ //filename thread.c#include #include #define NUM_THREADS 5void *PrintHello(void *threadid){ long tid;转载 2013-10-28 00:02:05 · 561 阅读 · 0 评论 -
make filesystem and erase mtdblock指令
cat /dev/mtdblock1 > 123.txthexdump 123.txt -cflash_eraseall /dev/mtd6flashcp -v 123.txt /dev/mtd6hexdump /dev/mtd6 -c ==============================================mkfs.jf原创 2013-10-28 00:20:41 · 1011 阅读 · 0 评论 -
linux find 指令
額外的動作: -exec command :command 為其他指令,-exec 後面可再接額外的指令來處理搜尋到 的結果。 -print :將結果列印到螢幕上,這個動作是預設動作!find / -name *.so -exec ls -l {} \;-exec 後面的 ls -l 就是額外的指令,指令不支援命令別名(ll不行转载 2013-11-04 22:29:29 · 543 阅读 · 0 评论 -
This can prevent 'grep' from showing up in ps results
$ ps aux | grep terminaluser 2064 0.0 0.6 181452 26460 ? Sl Feb13 5:41 gnome-terminal --working-directory=..user 2979 0.0 0.0 4192 796 pts/3 S+ 11:07 0:00 grep --color=a转载 2013-11-04 22:32:02 · 573 阅读 · 0 评论 -
posix and system V IPC
轉載自http://www1.huachu.com.cn/read/readbook.asp?bookid=10104131 http://www1.huachu.com.cn/read/readbookinfo.asp?sectionid=1000001837http://www1.huachu.com.cn/read/readbookinfo.asp?secti转载 2013-11-21 00:35:20 · 1041 阅读 · 0 评论 -
man page分類與說明
轉載自http://itzone.hk/article/article.php?aid=200407152225014657(如有侵權,請留言或來信告知)前言Man page是每位程式設計員及Unix/Linux系統管理員日常必備的參考,它必須是可靠以及準確(reliable & accurate)的,當然man page的擺放位置亦是關鍵,起碼你的man page是能夠被转载 2013-11-21 00:39:09 · 782 阅读 · 0 评论 -
linux export env
$find /opt/toolchains/ -type l -name mipsel-linux-gcc/opt/toolchains/stbgcc-4.5.3-2.4/bin/mipsel-linux-gcc$dirname $(find /opt/toolchains/ -type l -name mipsel-linux-gcc)/opt/toolchains/stbgcc原创 2013-11-21 00:30:31 · 690 阅读 · 0 评论 -
bootcmd(nolock)
There's no need to add "nolock" option in bootcmd"nolock" is for NFS rootfs原创 2013-11-21 00:31:07 · 619 阅读 · 0 评论 -
makefile := 用法
使用":="操作符前面的變量不能使用後面的變量,只能使用前面已定義好的變量如果是使用"="就可以使用後面的變量 轉載自http://toucware.blogspot.tw/2012/09/what-is-colon-equals-sign-in-makefiles.htmlIn Linux makefiles, you will often see a n转载 2013-11-21 00:32:34 · 746 阅读 · 0 评论 -
makefile教學
轉載自http://tetralet.luna.com.tw/?op=ViewArticle&articleId=185有稍稍在 Linux 下碰過程式設計的開發者應該會知道,make 是用來將程式碼、函式庫、標頭檔及其它資源檔 build 成最終成果(即:最終的應用程式)的超強力輔助工具。當然了,並不是非得動用到 make 才能 build 程式,或許有什麼程式設計魔人喜歡什麼都转载 2013-11-21 00:33:48 · 1399 阅读 · 0 评论 -
Linux上像windows的FinalData的修復工具
轉載自http://sealmemory.blogspot.tw/2012/07/testdisk.htmlhttp://www.cgsecurity.org/wiki/TestDisk_Step_By_Step#A_partition_is_still_missing:_Deeper_Search转载 2013-11-21 00:35:53 · 1794 阅读 · 0 评论 -
makefile echo方法
AA=789foo = uname -a; echo $(AA)all: @$(foo) -----------------以下為執行結果---------------------------------------------$makeLinux mysterywho-System-Product-Name 3.2.0-29-generic原创 2013-11-21 00:34:47 · 2042 阅读 · 0 评论 -
dlopen dlclose dlXXX
下載glibc-2.18.tar.gz後 解壓縮再include/link.h中的163 unsigned int l_direct_opencount; /* Reference count for dlopen/dlclose. */有dlopen的reference count 轉載自http://soon0530.blogspot.tw/2012转载 2013-11-21 00:36:26 · 1492 阅读 · 0 评论 -
mq_open
在unix network programming Volume2中第五章的poisx message queue中的mq_open現在的linux系統,已經不像書中的執行結果。需參考man mq_overview或參考http://cpp.ezbty.org/import_doc/linux_manpage/mq_overview.7.html mq_o原创 2013-11-25 10:32:20 · 1920 阅读 · 0 评论 -
export LD_LIBRARY_PATH
如果找不到so檔,必須再環境變數中export LD_LIBRARY_PATH例如so放在/usr/local/libexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/loval/lib原创 2013-12-04 01:26:37 · 619 阅读 · 0 评论 -
unix domain socket VS named pipes
轉載自http://stackoverflow.com/questions/9475442/unix-domain-socket-vs-named-pipes转载 2013-12-04 01:27:16 · 788 阅读 · 0 评论 -
socket编程
轉載自http://learn.akae.cn/media/ch37.html转载 2013-12-04 01:27:51 · 446 阅读 · 0 评论 -
Linux IPC总结(全)
轉載自http://blog.youkuaiyun.com/dxdxsmy/article/details/6653189 IPC进程间通信(Inter-Process Communication)就是指多个进程之间相互通信,交换信息的方法。Linux IPC基本上都是从Unix平台上继承而来的。主要包括最初的Unix IPC,System V IPC以及基于Socket的IPC。另外,Lin转载 2013-12-04 01:28:34 · 643 阅读 · 0 评论 -
不錯的技術論壇
http://www.ibm.com/developerworks/cn/ IBM developerworks转载 2013-12-15 22:22:10 · 587 阅读 · 0 评论 -
GDB 常用參數
轉載自http://www.cmlab.csie.ntu.edu.tw/~daniel/linux/gdb.htmlGDBGNU debugger常用參數gdb [options] [executable-file [core-file or process-id]]gdb [options] --args executable-file [inferior-argu转载 2013-12-15 22:22:51 · 733 阅读 · 0 评论 -
GDB
Target Board#gdbserver TargetBoardIP:port filename Local computer#/opt/toolchains/stbgcc-4.5.3-2.4/bin/mipsel-linux-gdb#target remote TargetBoardIP:port#symbol-file filename原创 2013-10-27 23:52:13 · 517 阅读 · 0 评论 -
pthread man page
使用ubuntu的話,會發現當要查詢pthread相關的function時,會找不到,此時可以安裝sudo apt-get install manpages-posix manpages-posix-dev glibc-doc 使用man -k pthread 可以查找到當前manpages中關於pthread的手冊原创 2013-12-15 22:24:57 · 543 阅读 · 0 评论 -
Linux 如何修改 root 密碼
轉載自http://blog.xuite.net/marwin/mindblog/37004891-Linux+%E5%A6%82%E4%BD%95%E4%BF%AE%E6%94%B9+root+%E5%AF%86%E7%A2%BC转载 2013-12-15 22:25:18 · 456 阅读 · 0 评论 -
nc 傳輸
1.In recive sidenc -l port > /tmp/XXX2.In device sidecat file > /dev/tcp/recive_IP/port3.open /tmp/XXX,then get file context In the device原创 2013-12-15 22:26:28 · 366 阅读 · 0 评论 -
How to open Firefox and chrome from command line
run firefox(default page)$firefox run firefox(在想要打開的網頁)$firefox www.yahoo.com run chrome(default page)$google-chrome run firefox(the page you want)$google-chrome ww转载 2013-12-28 20:28:44 · 516 阅读 · 0 评论 -
dram test
#include #include #define LEVEL 5#define RAM_TEST_PATTERNS 2intmain (int argc, char *argv[]){ ulong *ptrMalloc = NULL; int i = 0, j = 0; ulong test_value; ulong *ptrl = NULL; int level =转载 2013-12-28 21:46:28 · 1709 阅读 · 0 评论 -
Save Time with minicom macros
For those using minicom, there's no need to repeatedly type commands again-and-again.For those not using minicom, see my next mail.minicom provides macros support (i.e., hotkeys), which转载 2013-12-16 10:36:18 · 1285 阅读 · 0 评论 -
dhcp3-server
http://wiki.ubuntu.org.cn/index.php?title=Dhcp3-server&variant=zh-hanthttps://help.ubuntu.com/community/dhcp3-server转载 2013-12-16 14:13:11 · 810 阅读 · 0 评论 -
關於如何快速切換目錄(Linux)
想跟大家分享一下, 很多人剛開始用Linux 的 CLI時, 最不習慣的一點就是目錄的切換要一直cd來cd去, 其實這樣無形中浪費了很多時間, 因為根據英國研究(大誤), Linux CLI的操作者80%會進入的目錄可能集中在全部目錄的2%而已, 所以推薦大家一個工具 那就是 AUTOJUMP (迷之聲: 好像很久很久以前推薦過?), 有了autojump, 它會自動紀錄你去過转载 2013-12-16 10:34:50 · 438 阅读 · 0 评论 -
RFC search
http://www.rfc-editor.org/rfcsearch.html转载 2013-12-16 10:58:56 · 484 阅读 · 0 评论 -
ethernet switch loopback test transfer
platform/kernel/linux-2.6.29.6/drivers/net/gianfar_ethtool.cplatform/htp/ethtool-3.4.1After system boot up:ifconfig eth0 192.168.1.1ethtool -S eth0ethtool -t eth0ethtool -S eth0 // y原创 2013-12-16 10:59:50 · 1241 阅读 · 0 评论 -
看懂ppc 彙編 必備
http://www.cnblogs.com/EmbeddedLiving/archive/2011/04/12/2014269.html http://blog.youkuaiyun.com/kickxxx/article/details/7237058转载 2013-12-16 11:42:16 · 444 阅读 · 0 评论 -
sqlite3
中文http://www.helplib.net/s/sqlite/9/167.shtml英文http://www.sqlite.org/c3ref/funclist.html =================================基本操作 http://jianlee.ylinux.org/Computer/%E6转载 2013-12-16 10:31:59 · 487 阅读 · 0 评论 -
文件類型縮寫及別稱(socket,pipe)
文件類型 縮寫 英文 其他名稱普通文件 - Regular file 目錄文件转载 2013-12-16 10:57:42 · 1020 阅读 · 0 评论 -
Ubuntu 下的Wireshark執行找不到interfaces?!
轉載自https://sites.google.com/site/zorodesuisuinian/zuo-ye-xi-tong/ubuntu9-10/ubuntuxiadewiresharkzhixingzhaobudaointerfaces別緊張,請直接執行sudo wireshark以root身份進入就可以找到了.當然,這是以root身份進行抓取,封包的儲存都是個問題要解转载 2013-12-16 11:43:23 · 637 阅读 · 0 评论 -
doxygen
Installation$ sudo apt-get install doxygen doxygen-doc doxygen-gui graphvizGetting startedStep 1: Creating a configuration file$ doxygen -g /path/to/doxygen.confStep 2 : Modify原创 2013-12-16 14:08:57 · 731 阅读 · 0 评论 -
Open Source工具開發軟體
轉載自http://www.study-area.org/cyril/opentools/opentools/book1.htmlTable of Contents前言1. 編輯器 - emacs and vi簡介基本觀念一些特殊鍵emacs, vi 與unix世界emacs 快速入門簡介基本熱鍵TAB的奧妙emacs設定檔vi 快速入門簡介快速命令vi設定檔转载 2013-12-16 14:15:25 · 439 阅读 · 0 评论 -
Linux 常用C函式庫
http://fair.athost.net/main/linux_c/default.htm http://www.cs.ccu.edu.tw/~hcm92u/linux_c/main.htm转载 2013-12-16 14:21:50 · 429 阅读 · 0 评论