We will learn How to install composer using command line in ubuntu ?
First Open your terminal and write bellow three commands,
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer
After above command run successfully you can check by following command:
composer
May this help you.