I've been wandering in the web and saw this about how to install atom, the new text editor:
$ curl -sL https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
$ sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
I just wanted to know what these commands are actually doing. What does curl
do ?
I also read sh
was about running some shell instance but for what, what does this command make possible for instance, and what does it do specifically here?