Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

Download a file from a domain

no-831 au-03

wget

The wget command downloads file from the web. You can download files using HTTP, HTTPS and FTP protocols using the wget command.

Download a File

We’ll download a Raspberry Pi Magazin from Raspberry Pi Web using wget command.

1) Current directory: Desktop (It saves the magazin to Desktop)

2) Run below command

wget https://www.raspberrypi.org/magpi-issues/MagPi86.pdf

3) It is the magazine that we downloaded

SYNTAX:
wget url

url: https://www.raspberrypi.org/magpi-issues/MagPi86.pdf

Save file with different name

You can save downloaded file with different name.

1) Run below command.

wget -O mPi86.pdf https://www.raspberrypi.org/magpi-issues/MagPi86.pdf

2) Downloaded file

SYNTAX:
wget -O NewName url

NewName: mPi86.pdf
url: https://www.raspberrypi.org/magpi-issues/MagPi86.pdf

Download a file to specific directory

You can download a file to specific location.

1) Run below command.

wget -P /home/pi/Documents/ https://www.raspberrypi.org/magpi-issues/MagPi86.pdf

2) The file is downloaded to specific location

SYNTAX:
wget -P dir url

dir: /home/pi/Documents/
url: https://www.raspberrypi.org/magpi-issues/MagPi86.pdf

This article is a component of the “Linux Introduction” course from the ABIOLA online Academy.

Please refer: https://academy.abiola.ngo/courses/linux-introduction/?lang=en

Inhaltsverzeichnis