Linux Fundamentals Series Summary

Sep 17, 2024

Linux Fundamentals Part 3

Introduction

  • Final part of the Linux Fundamentals series on TryHackMe.
  • Focus on common utilities for daily use.
  • Key topics: automation, package management, and logging.

Task 1: Introduction

  • Overview of utilities and applications.
  • Emphasis on advancing Linux knowledge.

Task 2: Deploying the Machine

  • SSH into target machine using provided credentials.
  • Reminder: Use the correct IP address for your session.

Task 3: Terminal Text Editors

Nano

  • Basic command: nano filename
  • Easy to use for simple text editing.
  • Key features: search (Ctrl + W), copy/paste, line number navigation.

Vim

  • Advanced text editor with customizability and syntax highlighting.
  • Suitable for developers.
  • More complex but powerful tool.

Task 4: General/Useful Utilities

Downloading Files

  • wget command for downloading via HTTP.

Secure Copy (SCP)

  • Transfer files securely over SSH.
  • Syntax: scp source destination

Serving Files with Python

  • Use python3 -m http.server to serve files over HTTP.
  • Default port: 8000

Task 5: Processes 101

Viewing Processes

  • ps and ps aux to list processes.
  • top provides real-time stats.

Managing Processes

  • kill command with various signals (e.g., SIGTERM, SIGKILL).
  • systemctl for starting/stopping services.

Backgrounding and Foregrounding

  • Background with & or Ctrl + Z.
  • Foreground with fg.

Task 6: System Automation

Crontabs

  • Schedule tasks using crontab -e.
  • Syntax for scheduling includes minute, hour, day, month, and week.

Task 7: Package Management

Repositories

  • Use add-apt-repository to add new sources.
  • apt command for installing/removing software.

Task 8: System Logging

Log Files

  • Stored in /var/log.
  • Important for monitoring system health and security.

Conclusion

  • Completion of the Linux Fundamentals module.
  • Encouragement for further practice and exploration of additional TryHackMe rooms.