grep 選項功能-r遞歸搜索子目錄-i忽略大小寫-n顯示行號-l只顯示文件名-v反轉匹配(顯示不包含的行)-w全詞匹配-E使用擴展正則表達式–include指定文件類型 --include=*.{js,py}–exclude排除文件類型 --exclude=*.log–exclude-dir排除目錄 --exclude-dir={.git,node_modules}### Markdown表格基本語法 查找當前目錄下所有 Python 文件中的 “import” 語句 grep -rn --include=*.py "import" . 查找包含ip的文件 grep -rE "([0-9]{1,3}\.){3}[0-9]{1,3}" /etc/ systemctl 開啟服務 sudo systemctl start v2raya.service 停止服務 sudo systemctl stop v2raya.service 設置開機自啟動(本身有自啟動服務的話) sudo systemctl enable v2raya.service 撤銷開機自啟動 sudo systemctl disable v2raya sudo systemctl stop v2raya