What’s a .sh file?

If you open your second link in a browser you’ll see the source code: […] So it’s a bash script. Got Linux? In any case, the script is nothing but a series of HTTP retrievals. Both wget and curl are available for most operating systems and almost all language have HTTP libraries so it’s fairly … Read more

Amazon Linux: apt-get: command not found

If you’re using Amazon Linux it’s CentOS-based, which is RedHat-based. RH-based installs use yum not apt-get. Something like yum search httpd should show you the available Apache packages – you likely want yum install httpd24. Note: Amazon Linux 2 has diverged from CentOS since the writing of this answer, but still uses yum.

What’s a .sh file?

If you open your second link in a browser you’ll see the source code: […] So it’s a bash script. Got Linux? In any case, the script is nothing but a series of HTTP retrievals. Both wget and curl are available for most operating systems and almost all language have HTTP libraries so it’s fairly … Read more

Confused about stdin, stdout and stderr?

Standard input – this is the file handle that your process reads to get information from you. Standard output – your process writes conventional output to this file handle. Standard error – your process writes diagnostic output to this file handle. That’s about as dumbed-down as I can make it 🙂 Of course, that’s mostly by convention. There’s nothing stopping … Read more

Bash: No such file or directory?

I bet you miss dynamic linker. Just do a You should get an output like this: There are high chances that you system lacks the interpreter (/lib64/ld-linux-x86-64.so.2 in the example). In this case bash would yell No such file or directory, just like when the binary itself is missing. You can try to use a different linker. Sometime you can … Read more