[Linux]命令集錦

  1. 搜索包含的文字 fgrep -rn "helloworld" .搜索

    最後的. 表示路徑爲當前目錄。 搜索結果可放到文件,好比fgrep -rn "helloworld" . > ../total.txt 這裏是../total.txt, 若是用./total.txt會死循環, 你懂的。循環

  2. Windows 下可用FileSeek v2.1.3來替代使用grep

  3. tree /f 能夠以樹形方式顯示當前目錄下的東西 -- --folder01 |文件

相關文章
相關標籤/搜索