π§ All About Linux: The Heart of DevOps

π©βπ» Aspiring DevOps & Cloud Engineer | Learning in Public | Automation Enthusiast Hi! Iβm Vaishnavi Landge, documenting my journey into DevOps, Cloud, CI/CD, and automation. I believe in learning by doing β this blog is my daily space to simplify concepts, share projects, and grow step by step. π Letβs build, automate, and deploy β together!
π§© What is Linux?
Linux is an open-source operating system β just like Windows or macOS β but designed to be lightweight, fast, secure, and extremely customizable.
The cool part? It powers most of the internet, cloud infrastructure, and the tools used in DevOps.
π‘ Why Use Linux?
Because itβs:
β Free and open-source
β Stable and secure
β Highly customizable
β Lightweight β perfect for servers
β Built for developers and engineers
Linux is not just an OS β itβs an engineerβs toolbox.
π₯ Why Linux is Essential in DevOps
DevOps is all about:
Automating tasks
Running servers and containers
Managing infrastructure
Monitoring systems
π All of this is easier and more reliable on Linux.
π Common Use Cases of Linux in DevOps
| Use Case | Why Linux is Used |
| Cloud Servers (EC2) | Most AWS/GCP/Azure servers are Linux-based |
| Containers (Docker) | Containers use Linux kernel features |
| CI/CD Tools (Jenkins) | Installed and configured via Linux commands |
| Automation Scripts | Written in Bash or Shell β both Linux shells |
| Monitoring Tools | Tools like Prometheus/Grafana run on Linux |
| Infrastructure Setup | Tools like Terraform & Ansible use Linux environments |
π How Much DevOps Depends on Linux?
π In one word: heavily.
While some DevOps tasks can be done on Windows or Mac, real-world deployments, automation, and infra management are done on Linux.
Hereβs a simple breakdown:
DevOps Role -> Linux Dependency
---------------------------------------------------------------
CI/CD Engineer -> High (Shell scripting, build agents)
Cloud Engineer -> Very High (Linux EC2s, networking)
Automation Specialist -> High (Bash/Python scripting)
Container Engineer -> 100% (Docker runs on Linux)
Monitoring/Logging -> High (Linux-based agents and tools)
β Essential Linux Commands for DevOps Beginners
π File & Directory Management
pwd # Print working directory
ls # List files in current directory
ls -l # Long listing format
cd /path/to/dir # Change directory
cd .. # Go one directory up
mkdir myfolder # Create a new folder
touch myfile.txt # Create an empty file
cp file1 file2 # Copy file1 to file2
mv file1 file2 # Move or rename file
rm file.txt # Delete file
rm -r myfolder/ # Delete folder recursively
π Viewing File Content
cat filename.txt # Show entire file content
head filename.txt # Show first 10 lines
tail filename.txt # Show last 10 lines
tail -f log.txt # Live follow log file
less filename.txt # Scrollable file viewer
π File Permissions & Ownership
chmod +x script.sh # Make file executable
chmod 755 filename # Change permissions (rwxr-xr-x)
chown user:group file # Change file owner and group
π Search & Find
find . -name file.txt # Find file in directory tree
grep "text" file.txt # Search for text in a file
grep -i "text" file.txt # Case-insensitive search
π¦ Package Management (Ubuntu/Debian)
sudo apt update # Update package list
sudo apt upgrade # Upgrade installed packages
sudo apt install nginx # Install a package
sudo apt remove nginx # Remove a package
π Process Management
ps aux # Show running processes
top # Real-time system processes
htop # Advanced process viewer (if installed)
kill <PID> # Kill process by ID
kill -9 <PID> # Force kill process
π Networking Commands
ip a # Show IP addresses
ping google.com # Ping a host
curl ifconfig.me # Show public IP
netstat -tuln # Show open ports and services
ss -tuln # Modern netstat alternative
π Disk & Memory Usage
df -h # Show disk usage in human-readable format
du -sh * # Show size of files/folders
free -h # Show RAM usage
π§ System Info
uname -a # Show kernel and system info
hostname # Show system hostname
uptime # Show how long the system is running
whoami # Show current user
π User Management
adduser newuser # Add a new user
passwd newuser # Set password
deluser olduser # Delete a user
π Logs & Services
journalctl # View system logs (systemd)
sudo systemctl status nginx # Check service status
sudo systemctl start nginx # Start a service
sudo systemctl stop nginx # Stop a service
sudo systemctl restart nginx # Restart a service
βοΈ Compression & Archiving
tar -czvf archive.tar.gz myfolder/ # Create .tar.gz archive
tar -xzvf archive.tar.gz # Extract .tar.gz archive
zip -r archive.zip myfolder/ # Zip folder
unzip archive.zip # U nzip archive
π Shortcuts & Misc
clear # Clear terminal screen
history # Show command history
alias ll='ls -l' # Create shortcut command
π§ Pro Tip: Use MobaXterm + WSL
To practice Linux on Windows, I use:
π§ MobaXterm β for an easy terminal interface
π§ WSL (Ubuntu) β runs Linux right inside Windows!
This makes it super easy to learn without needing a separate Linux server.
This is all for now about Linux for DevOps! π But this is just the beginning β thereβs always more to explore and master.
This blog is part of my daily DevOps journal, and Iβll keep adding new tips and use-cases as I grow.
π Stay tuned for Day 3: Networking for DevOps β where we dive into the backbone of communication in modern systems! π‘π©βπ»



