How to install curl command on Ubuntu Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-install-curl-command-on-a-ubuntu-linux/

I am a new Ubuntu Linux user. I switched from Apple MacOS/Macbook and I trying to run the curl command from a shell script but getting the following error:

bash: curl: command not found

How do I fix this on a Ubuntu Linux version 17.10/16.04 LTS?