Linux Curl And Wget

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Linux curl & wget

These commands are used to download a file from the internet using CLI. With curl commands option O will be used while wget command will be used without any option. The file will be saved in the current directory.

Syntax:

curl -O <fileLink> 

Example:

curl -O google.com/doodles/childrens-day-2014-multiple-countries 

Linux curl & wget1

Look at the above snapshot, we have downloaded one file with the help of curl -O command.

Syntax:

wget <fileLink> 

Example:

wget google.com/doodles/new-years-day-2012

Linux curl & wget2

Look at the above snapshot, we have downloaded one file with the help of wget command.