在研讀LInux Kernel Drivers 時,常會遇到netif_dbg
、pr_debug
相關的debug 函數。此文章將介紹如何開啟此類函數的輸出Log。以下將以Arm Linux Kernel 3.18.44
版本做為例子介紹。
linux
用sed 搜尋並取代字串
在Linux 系統中,若有一檔案,如我們想取代某一字串,可以用sed 指令完成。參考以下指令:
Linux系統/opt目錄和/usr/local目錄區別
1. /opt 目錄
在研讀LInux Kernel Drivers 時,常會遇到netif_dbg
、pr_debug
相關的debug 函數。此文章將介紹如何開啟此類函數的輸出Log。以下將以Arm Linux Kernel 3.18.44
版本做為例子介紹。
在Linux 系統中,若有一檔案,如我們想取代某一字串,可以用sed 指令完成。參考以下指令:
1. /opt 目錄