What is the cURL command in node.js install actually doing?

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 :slight_smile:

  1. Curl downloads a bash script which is piped to a new shell

  2. The new shell excutes the script with superuser privillege

  3. This script adds new URLs to your repo lists that means…

  4. …when you type in your apt-get command it now knows where to go to get ‘nodejs’ in order to actually install it.

1 Like