Linux Fundamentals
By bamr87
Basic Linux concepts including navigation, scripting, security, and networking
Estimated reading time: 3 minutes
Table of Contents
Linux Fundamentals
Welcome to the Penguinβs Domain, brave adventurer! Linux is the backbone of modern servers, cloud infrastructure, and countless development environments. Mastering its fundamentals is like learning the ancient language of the digital realm β it unlocks power and flexibility that no other platform can match.
π― Quest Objectives
Primary Objectives (Required for Quest Completion)
- Master File Navigation β Navigate the Linux file system with
ls,cd,pwd, andfind - Learn File Operations β Copy, move, rename, and delete files and directories
- Understand Bash Scripting Basics β Write scripts with variables, loops, and functions
- Grasp File Permissions β Use
chmod,chown, and understandrwxnotation
Secondary Objectives (Bonus Achievements)
- Set Up SSH β Generate SSH keys and connect to a remote server
- Configure a Cron Job β Schedule an automated task
- Explore Networking Tools β Use
ping,traceroute,netstat, andcurl - Harden Your System β Configure a basic firewall with
ufw
Mastery Indicators
- Can navigate any directory structure without a GUI
- Can write a Bash script that automates a multi-step task
- Can manage Linux users and permissions
- Can diagnose basic network connectivity issues
πΊοΈ Quest Prerequisites
π Knowledge Requirements
- Basic understanding of operating systems and file systems
- Familiarity with typing commands into a terminal
π οΈ System Requirements
- Linux distribution installed (Ubuntu recommended) or WSL on Windows
- Terminal access
- Internet connection for package installations
Introduction
This guide covers essential Linux concepts that every IT professional should know. Whether youβre just starting your journey or need a refresher, these fundamentals will help you navigate the Linux ecosystem effectively.
Navigation - File Exploration
Basic Commands
ls- List directory contentscd- Change directorypwd- Print working directoryfind- Search for files and directorieslocate- Find files using a databasewhich- Locate a command
File Operations
cp- Copy files and directoriesmv- Move/rename files and directoriesrm- Remove files and directoriesmkdir- Create directoriesrmdir- Remove empty directories
Scripting
Bash Scripting Basics
- Variables and environment setup
- Control structures (if/else, loops)
- Functions and parameter handling
- Input/output redirection
- Error handling and debugging
Shell Automation
- Cron jobs for scheduling
- Service management with systemctl
- Log analysis and monitoring
- Backup and maintenance scripts
Security
File Permissions
- Understanding rwx permissions
- chmod and chown commands
- User and group management
- sudo configuration
System Security
- SSH key management
- Firewall configuration (iptables/ufw)
- User authentication and authorization
- Security updates and patching
Networking
Network Basics
- TCP/IP fundamentals
- Network configuration
- DNS and hostname resolution
- Port management and services
Network Tools
ping- Test connectivitytraceroute- Trace network pathnetstat- Display network connectionsss- Modern socket statisticscurlandwget- Download and test HTTP endpoints
Resources
π Quest Completion Validation
Skills Demonstrated
- File System Navigation β Confident use of
ls,cd,pwd,find,locate - File Operations β Copying, moving, renaming, and deleting files
- Scripting β Writing Bash scripts with variables and control structures
- Security β Managing permissions and understanding
sudo - Networking β Basic connectivity diagnostics and HTTP testing