Urgent.News

What's breaking now, across thousands of outlets.

Tech

Getting to Know the Linux Filesystem as a DevOps Beginner

While working on my EC2 instance, I kept coming across paths like /etc , /var/log , and /usr/share . I wanted to understand what these directories do and when I might need them while managing a Linux server. To make things easier to understand, I started thinking of the Linux filesystem as a house. Imagine / (the root directory) as the entire house. Inside the house, there are different rooms,…

As a DevOps beginner exploring the Linux filesystem, I found myself frequently encountering paths like /etc, /var/log, and /usr/share. To better understand these directories and their purposes, I began to think of the Linux filesystem as a house. In this analogy, / (the root directory) represents the entire house, with other directories like /home, /etc, /var, and /usr branching out from it, just as different rooms hold specific purposes within a home.

Starting with the root directory (/), I realized that Linux organizes files into directories, each serving a distinct purpose. This structure is similar to how a house is organized into rooms, each with its own function. By understanding the various directories on my EC2 instance, I could grasp how Linux manages its files and resources.

Beginning with /bin, I discovered this directory contains essential commands necessary for everyday tasks. Just as a well-organized cupboard holds basic tools, /bin houses commands like ls for listing files and cp for copying files. Next, I learned about /boot, which holds files required to start the operating system, akin to the part of a house that provides the necessary components to get the house up and running.

Moving on to /dev, I found this directory containing special files that enable the operating system and applications to interact with devices and system resources. These device files, such as /dev/sda for disk devices or /dev/tty for the terminal associated with a process, act as interfaces for working with hardware components, much like the lights and taps in a house.

The /etc directory, representing the instructions kept in a house's instruction manual, holds configuration files that dictate how the system and applications function. For instance, /etc/ssh/sshd_config contains settings for the SSH server, while /etc/hostname specifies the system's hostname. Within /home, I saw personal directories for each user, similar to the bedrooms in a house where individuals keep their belongings. Each user can store their own files, documents, and projects in their designated space.

Likewise, /lib contains essential libraries akin to a cupboard full of small parts that help our tools function. These libraries, such as those used to perform specific operations within programs, prevent the need to create code from scratch. Moving to /media, I learned that this directory is where removable devices like USB drives are accessed when connected to the computer. Lastly, /mnt serves as a temporary mount point, allowing system administrators to attach additional filesystems to access their files as needed.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Real Watch Time from Noisy Video Player Logs

Originally published on mahdimolavi.ir . "How much of this video did the student actually watch?" sounds like a question with a one-line answer.

  • Player transmits lightweight JSON events for each activity
  • Ingestion service accepts events quickly, returns 503 error on overload
  • Analysis engine reconstructs viewing sessions with four key rules

I built a zero-cost Instagram toolkit with 47 static pages, 2 edge functions and no framework

I wanted one clean place for the small Instagram chores people google every day: fancy bio fonts, keeping line breaks in captions, splitting a photo into a profile grid, posting without cropping, and…

  • IGKit created to consolidate common Instagram tasks with zero server costs
  • 47 static pages built using plain template strings and vanilla JavaScript
  • Edge functions used for server-required features, with CDN caching for data

WEEK 3 CHALLENGE

Here is a complete template tailored for your DEV post submission for Hacktoberfest Week 3 (Slow and Steady) . *This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and…

  • "Turtle Steady" is an interactive productivity app for Hacktoberfest
  • Uses Gemini-2-9b-it and Gemini-2-27b-it models for task decomposition
  • Promotes privacy, local control, and adaptability for users

More from Saturday 24 October →