curl -sL https://rpm.nodesource.com/setup_13.x | sudo bash -;sudo
What is the above command actually doing? I dont understand the pipe operator and sudo bash- ; part.
And where will one find the exact URL? In the course, they are being served
curl -sL https://rpm.nodesource.com/setup_13.x | sudo bash -;sudo
What is the above command actually doing? I dont understand the pipe operator and sudo bash- ; part.
And where will one find the exact URL? In the course, they are being served
Curl downloads a bash script which is piped to a new shell
The new shell excutes the script with superuser privillege
This script adds new URLs to your repo lists that means…
…when you type in your apt-get command it now knows where to go to get ‘nodejs’ in order to actually install it.