curl on linux code example
Example 1: how to use curl command in ubuntu
curl -o vue-v2.6.10.js https://cdn.jsdelivr.net/npm/vue/dist/vue.js
Example 2: how to use curl command in ubuntu
curl -O http://mirrors.edge.kernel.org/archlinux/iso/2018.06.01/archlinux-2018.06.01-x86_64.iso \ -O https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.4.0-amd64-netinst.iso
Example 3: how to use curl command in ubuntu
curl -O https://cdn.jsdelivr.net/npm/vue/dist/vue.js
Example 4: curl command
#usage:
curl <url>
#it returns the raw text of the page (or anything else) at <url> in the internet
#to stdout
#examples:
#put the output into <file>
curl <url> > <file>
#to search for <pattern>
curl <url> | grep /<pattern>/
#to uncompress the output
curl <url> | gunzip
#you get the hang of it.
#helpful if you are testing a server :)
#be sure to be on bash or powershell!