Currently browsing category

Linux, Page 30

RPM query the package owning

-f <file> — Query the Package Owning <file> How many times have you found a program sitting on your system and wondered …

[Linux Tips] kill 砍某程式有附加參數

例如 ps 結果如下 programname 1 programname 1 programname 2 programname 1 然後想 kill programname 1 而不想傷害到 programname 2 但是使用killall又會把programname砍光. 所以可以使用下面命令 ps | …

[Linux Tips] grep and cut

aloha:~/Documents/Codes samtz$ grep cfgversion test.xml <fileHeader fileversion=”0.1.0.1″ filename=”test.xml” filetype=”xml” cfgversion=”33″ cfgmversion=”0″ cfgsversion=”0″ swversion=”1.0.1.0″ sendname=”la la” vendername=”xx”/> aloha:~/Documents/Codes samtz$ grep cfgversion test.xml | …

bad interpreter: No such file or directory

在執行 shell 程式發生”bad interpreter: No such file or directory”的錯誤. 把\r換成空的就可以解決 perl -i -pe’s/\r$//;’ <file name here>  bad interpreter: No such file or …

Bridge

From : http://linux-net.osdl.org/index.php/Bridge A bridge is a way to connect two Ethernet segments together in a protocol independent way. Packets are forwarded …