# Wget ###### tags: `工具` `Wget` * 下載指定url wget http://sample.xxx/ * 將指定url輸出為指定檔案 wget http://sample.xxx/sample.html -O test.html * 下載全站 wget -r http://sample.xxx/ * 下載全站(進階版) wget -t0 -c -nH -np -m -P /targetdir http://sample.xxx/ * 確認bookmarks.html內連結狀況,但不下載頁面 wget --spider -F -i bookmarks.html * 確認bookmarks.html內連結狀況,並輸出至wget.log wget --spider -o wget.log -F -i bookmarks.html --- 資料來源: [Wget 指令用途與範例](https://blog.rex-tsou.com/2016/05/wget-%E6%8C%87%E4%BB%A4%E7%94%A8%E9%80%94%E8%88%87%E7%AF%84%E4%BE%8B/)