OS: CentOS 5.5 64bit

尋找一個檔案

find 路徑 -name 檔名

例如

find / -name temp.txt

find /root -name temp.txt

尋找一個文字

grep 文字 檔案

例如

grep test temp.txt

尋找一個文字(連同子目錄)

grep -r 文字 路徑

arrow
arrow
    全站熱搜

    caramels 發表在 痞客邦 留言(0) 人氣()