A few weeks back, my friend Tom asked me a question regarding Linux - that is - Which is the best Linux distribution of them all. And following is the lively conversation we had about this topic which I am sharing with you.Tom: Ravi, There is a lot
Linux 平台下 檔案名稱: scala_exec#!/bin/shexec scala "$0" "$@"!#// The following should be scala code// just an exampleprintln("I'm executing in bash, and you input args.." + args[0])
以下內容轉載自http://hi.baidu.com/jackywdx/blog/item/d831471fedd6d1cda78669c5.htmlGrep : g (globally) search for a re (regular e-xpression ) and p (print ) the results.1、參數: -I :忽略大小寫 -c :列印匹配的行數 -l :從多個檔案中尋找包含匹配項 -v :尋找不包含匹配項的行 -n:列印包含匹配項的行和行標2、RE(Regex) \
httpd: apr_sockaddr_info_get() failed for hoteelhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName我在service httpd restart的時候提示上述資訊的。雖然啟動成功了,但是也是很鬱悶的。這是因為我在配置DNS的時候hostname
一、尋找進程ps是linux裡面用於查看進程的命令:[文法]: ps [ -efl] [ -t 終端表] [ -u 使用者表] [ -g 組表][說明]: 顯示出有關進程的狀態1)ps a 顯示現行終端機下的所有程式,包括其他使用者的程式。2)ps -A 顯示所有程式。3)ps c 列出程式時,顯示每個程式真正的指令名稱,而不包含路徑,參數或常駐服務的標示。4)ps -e 此參數的效果和指定"A"參數相同。5)ps e 列出程式時,顯示每個程式所使用的環境變數。6)ps f
pthread_kill:別被名字嚇到,pthread_kill可不是kill,而是向線程發送signal。還記得signal嗎,大部分signal的預設動作是終止進程的運行,所以,我們才要用signal()去抓訊號並加上處理函數。int pthread_kill(pthread_t thread, int