We will continue to work with the shell, a world between worlds. A place full of dead mice. Let’s start with a reading review:
What does it mean for a directory to be executable?
Write a command to run program place, reading from file bets and appending its output to file log.
What will file .. report?
Your program webify generates a lot of HTML. Write a command to only show the img tags.
Now it’s time for a segment I like to call What Does This Do? We’ll spend a moment absorbing each code snippet, and then I’ll ask what they do and what would be a good name for the script.
Send files to limbo/recycling bin, rather than hell/non-existence.
Send a mass email.
Show the biggest files in a directory.
Upload a local file to a web server and let the world see it.
Here’s your TODO list for next time:
Install Ruby on your Linux installation. Ruby is often installed per user, and one user may have several versions installed. I recommend you do the same. The following shell commands will install RVM (the Ruby Version Manager) and Ruby 2.3.3.