PHP Installation

already installed in ubuntu 20

sudo apt install curl curl https://gnu.org

Download file To download a file with curl, use either the -o or -O options.

curl -o linux.tar.xz https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.0.5.tar.xz curl -o https://gitlab.com/francoisjacquet/rosariosis/-/archive/v7.7/rosariosis-v7.7.zip curl -O https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.0.5.tar.xz

With curl you can also fetch only the HTTP headers of the specified URL:

curl -I https://www.gnu.org/

Another common use case of curl is to download files from password-protected FTP servers:

curl -u FTP_USERNAME:FTP_PASSWORD ftp://ftp.example.com/file.tar.gz

Previous
Next