Search⌘ K

Preliminaries: Linux File Structure and Commands

Learn the fundamentals of Linux file organization and commands to effectively manage file paths and run Ruby code. This lesson helps you navigate directories, list files, and view content using Linux CLI tools, preparing you for file handling tasks in Ruby.

We'll cover the following...

In previous exercises, we collected data from the user input and printed an output to the screen. In this chapter, we'll write some programs to accomplish the following tasks:

  • Read from and write to files

  • Read data from internet resources

  • Send emails over the internet

Before we learn to do all that, let's brush up on some file organization basics and basic Linux commands that would be helpful for observing the changes to the file structure made by our Ruby code—directly in the command-line interface (CLI).

File structure

  • A root directory is a ...