Skip to main content

Command Palette

Search for a command to run...

🐧 All About Linux: The Heart of DevOps

Updated
β€’5 min read
🐧 All About Linux: The Heart of DevOps
V

πŸ‘©β€πŸ’» 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 CaseWhy 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 ScriptsWritten in Bash or Shell β€” both Linux shells
Monitoring ToolsTools like Prometheus/Grafana run on Linux
Infrastructure SetupTools 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! πŸ’‘πŸ‘©β€πŸ’»

More from this blog

The CloudOps Journal

10 posts