Wget ve cURL Komutları

Wget ve cURL Komutları

Internet ağı üzerinden dosyalar indirmeye yarayan, Wget ve cURL ile komut satırı üzerinden kullanılan bir indirme yöneticisi.

Dosya İndirme

wget http://www.w3schools.com/xml/simple.xml
curl -O http://www.w3schools.com/xml/simple.xml

Dosya İndirme ve Dosya Adı Değiştirme

wget -o "demo.xml" http://www.w3schools.com/xml/simple.xml
curl -o "demo.xml" http://www.w3schools.com/xml/simple.xml

Klasör Oluşturma ve Dosya Adı Değiştirme

mkdir -p "backup/file/" && wget -O "backup/file/demo.xml" http://www.w3schools.com/xml/simple.xml
curl -o "backup/file/demo.xml" --create-dirs http://www.w3schools.com/xml/simple.xml