After unpacking the source code for a Linux kernel, what is the first make command that should be run which will delete any current configuration and all generated files? This command will ensure that no inappropriate files were left in the kernel archive by the maintainer.
A.
make depend
B.
make distclean
C.
make config
D.
make clean
E.
make mrproper
題解
Linux 核心的「make clean」會刪除大部份編譯時產生的檔案,但會保留設定檔(.config)。「make mrproper」會刪除所有產生出來的檔案,也會把設定檔一併刪除。Linux 核心的 README 文件也建議在解開原始碼之後,先執行「make mrproper」來確保沒有舊的目的檔等檔案殘留。至於「make distclean」則是除了會做「make mrproper」所做的事之外,還會再刪除編輯器的備份檔和 patch 檔。
題目問的是會刪除目前的設定和所有產生出來的檔案的指令,所以答案是選項 E。
