1. 程式人生 > 其它 >一些常用的shell命令

一些常用的shell命令

技術標籤:Shell

檢視某一個程序及其子程序的top狀態

top -p `pidof 程序名 | sed 's/ /,/g'`

valgrind查詢記憶體洩漏命令

要先安裝valgrind,結果會輸出到val.log日誌中

valgrind --leak-check=full --log-file=val.log --trace-children=yes 任務名 (...任務引數)