建立於: 8年前 ( 更新: 8年前 )
以下的指令,在Linux及MacOS都是通用的
find . -type f -mtime -7 -name "*.php"
| 參數 | 說明 |
|---|---|
| . | 目前的目錄下開始找,包含了子目錄。 |
| -type f | f 代表類型為檔案,d 代表類型為目錄 |
| -mtime -7 | -7(負七) 代表7天內變動過的檔案。 |
| -name "*.php" | 只找副檔名為php的檔案 |
以下的指令,在Linux及MacOS都是通用的
find . -type f -mtime -7 -name "*.php"
| 參數 | 說明 |
|---|---|
| . | 目前的目錄下開始找,包含了子目錄。 |
| -type f | f 代表類型為檔案,d 代表類型為目錄 |
| -mtime -7 | -7(負七) 代表7天內變動過的檔案。 |
| -name "*.php" | 只找副檔名為php的檔案 |
有些地方或許還存在一些老舊程式,只能跑舊的系統。但又希望能執行及安裝一些想要的套件,您或許可以試這招請注意,如果這個系統對您很重要,請自行評估,建議您是Docker環境,並且有備份了image才可嚐試。
介紹我寫的一支bash,用來透過ssh連線到colab vm內。 一行指令,搞定colab OpenSSH Server。
No Comment
Post your comment