🐧

Linux Fundamentals Introduction and Commands

May 28, 2025

TryHackMe Linux Fundamentals Part 1

Introduction

  • Presenter: John
  • Objective: Learn the fundamentals of Linux, including essential commands on an interactive terminal.
  • Target Audience: Beginners or those with minimal Linux experience, aiming to solidify skills.
  • Recommendation: Complete all three parts of the Linux Fundamentals series to become proficient.

Task 1: Introduction to Linux

  • OS Overview: Linux is a popular operating system, used in various devices like smart cars, Android devices, supercomputers, and game consoles.
  • Customization: Highly customizable and lightweight.
  • Focus: History of Linux, running first commands, file system interaction, user and group management.

Task 2: A Bit of Background on Linux

  • Where is Linux Used?: Powering websites, car entertainment systems, point of sale systems, and critical infrastructures.
  • Flavors of Linux: Based on UNIX, includes Ubuntu, Debian, etc.
  • Ubuntu: Commonly used for both servers and desktops, low resource requirements.
  • History: The first release of Linux was in 1991.

Task 3: Interacting with Your First Linux Machine

  • Interactive Machine: Use a browser-based Ubuntu machine.
  • To Start: Click the green start machine button.
  • Machine Details: Includes IP address and expiration timer.

Task 4: Introduction to the Terminal

  • Lightweight: Often no GUI.
  • Command Line: Faster for system administration.
  • Key Commands:
    • Echo: Repeats input (e.g., echo "hello world").
    • Who Am I: Shows current user.

Task 5: Interacting with the File System

  • Commands:
    • LS: Lists files and directories.
    • CD: Changes directories.
    • CAT: Outputs file contents.
    • PWD: Prints current directory path.
  • Exercises: Navigate directories, find files, and view contents.

Task 6: Searching for Files

  • Find Command:
    • Locate files by name or pattern (e.g., using wildcards *.txt).
  • Grep Command:
    • Searches inside files for specific text or patterns.*

Task 7: Introduction to Shell Operators

  • Operators:
    • & (Background Operator): Runs commands in the background.
    • && (Logical AND Operator): Executes a second command only if the first is successful.
    • > (Output Redirector): Redirects output to a file, overwriting it.
    • >> (Append Operator): Appends output to a file, preserving existing content.

Task 8: Conclusions and Summaries

  • Review: Essential commands, file system navigation, find and grep usage, shell operators.
  • Next Steps: Practice these commands and move on to Linux Fundamentals Part 2.

Task 9: Transition to Part 2

  • Machine Termination: Click the terminate button to close the active machine.
  • Continuation: Follow the link to Linux Fundamentals Part 2 upon completion.