Course Content
🗓️ Day 1 – Getting Started with Linux
• Understand what Linux is and why it’s essential for DevOps and AI. • Learn basic terminal commands: pwd, ls, cd. • Explore the filesystem hierarchy and directory structure. • Practice moving around the shell confidently.
0/6
🗓️ Day 2 – Working with Files and Directories
• Create, view, and edit files using touch, cat, nano. • Organize directories with mkdir, rmdir, cp, mv. • Understand absolute vs. relative paths. • Hands‑on: build a mini project folder structure.
0/6
🗓️ Day 3 – Permissions and Ownership
• Learn how Linux manages read, write, and execute permissions. • Commands: chmod, chown, chgrp. • Understand user roles (root, user, group). • Practice fixing permission errors and securing files.
0/6
🗓️ Day 4 – Processes and Services
• Understand what processes are and how to monitor them. • Commands: ps, top, kill, systemctl. • Learn how services start, stop, and restart. • Hands‑on: manage a simple service like nginx or ssh.
0/6
🗓️ Day 5 – Networking and Remote Access
• Basics of IP addresses, ports, and protocols. • Commands: ping, ip, ssh, scp. • Learn secure remote connections and file transfers. • Practice connecting to a remote server.
0/6
🗓️ Day 6 – Shell Scripting Essentials
• Introduction to shell scripting and variables. • Write simple scripts using echo, loops, and conditionals. • Learn how to make scripts executable. • Hands‑on: automate a daily task (e.g., backup or log cleanup).
0/6
Introduction to the Linux Terminal

On Day 1, you learned how to walk through the operating system; today on Day 2, you learned how to actively mold, shape, and manipulate it.

In the world of cloud infrastructure, automation, and DevOps, data management is king. You have transitioned from a passive observer using terminal tools as a map to an engineer building workspaces out of raw strings.

Day 2 Milestone Recap

Let’s lock in the core technical patterns you added to your engineering arsenal today:

  • The Directory Blueprint (mkdir / rmdir): You discovered how to architect clean folder hierarchies (mkdir). More importantly, you learned that Linux implements safety gates like rmdir to completely block you from deleting folders unless they are 100% empty, protecting you from accidental data loss.

  • The Creation Spark (touch): You learned how to instantly generate empty files. You also learned that Linux is blind to file extensions (.txt, .conf); it relies entirely on the internal content structure of the file, using extensions merely as labels for human convenience.

  • Relocation & Replication (cp / mv): You broke through the Recursion Barrier, mastering the use of the -r flag to duplicate complex directory trees sequentially. You also discovered that mv is a dual-purpose tool used to shift a file across the server or rename it instantly.

  • The Inspection Matrix (cat vs. less vs. head vs. tail): You graduated from blindly using cat for everything. You now know how to select the absolute best tool for the job:

    • cat for small files.

    • less for massive files to preserve server memory and search via /.

    • head to check configurations layout templates.

    • tail -f to watch production logs dynamically stream to your screen in real time.

Day 2 Production Challenge: “The Silent Failure”

Before unlocking Day 3, let’s test your engineering intuition with a real-world infrastructure scenario. Read the problem statement below and map out the exact sequence of commands you would type to solve it.

The Scenario

You are an on-call DevOps engineer. A developer messages you in a panic: “I deployed our new web app into /home/student/production, but it’s completely dead. I think the custom configuration file has a typo, and the application is actively crashing behind the scenes!”

Your Task

Write down or mentally map out the exact five commands you would execute to troubleshoot and fix this platform failure:

  1. Command 1: What command do you use to jump straight into the production deployment directory using an absolute path?

  2. Command 2: You need to check the last 20 lines of the application log file named error.log to see the exact crash message. What command do you run?

  3. Command 3: The log says: “Error: Invalid value on line 4 of web.conf”. You need to check exactly what the top of that configuration file looks like. What command do you use to see just the first few lines?

  4. Command 4: You spot the typo. Which terminal-native text editor command do you use to open web.conf and fix line 4?

  5. Command 5: Before you restart the app, you want to safely duplicate the fixed web.conf file as web.conf.bak just in case. What command creates this backup?

Bash

 
# 1. Jump to the production folder via an absolute path
cd /home/student/production

# 2. Inspect the latest 20 error entries
tail -n 20 error.log

# 3. View the top lines of the configuration file
head web.conf

# 4. Open the friendly terminal text editor to fix the typo
nano web.conf
# (Inside Nano: modify text, Ctrl+O to save, Ctrl+X to exit)

# 5. Duplicate the file to create an infrastructure backup
cp web.conf web.conf.bak

Preview: Moving into Day 3 (Permissions & Ownership)

You now know how to build directories, edit text files, and read logs. But what happens when you try to modify a critical configuration file and the terminal abruptly shuts you down with a cold, hard error message: bash: Permission denied?

Tomorrow on Day 3, we unlock the gates of Linux security. You will learn:

  • How to read the cryptic lines of security flags (-rw-r--r--).

  • How to grant execution powers to your automation scripts using chmod.

  • How to safely wield the ultimate system administrative power key: sudo.

Take a well-deserved break, let the file commands settle into your muscle memory, and click “Next Lesson” when you are ready to conquer Linux Security on Day 3!