Linux • Git • Shell Scripting • DevOps Basics
Before learning Linux and DevOps, you need a stable environment. You can use:
The best OS for DevOps learners. Stable, lightweight, beginner-friendly.
Download UbuntuDesigned for cybersecurity and hacking tools. Not recommended for DevOps.
Download Kali LinuxLinux refers to the kernel, and distributions like Ubuntu, Fedora, CentOS are built on top of it.
If you use Windows, WSL allows you to run Linux terminal directly.
wsl --install
wsl --set-default-version 2
| OS | Best For | Pros | Cons |
|---|---|---|---|
| Ubuntu | DevOps, Cloud, Development | Stable, simple, lightweight | None major |
| Kali Linux | Cybersecurity | Built-in hacking tools | Not stable for DevOps |
| WSL | Windows users | No dual boot, easy setup | Not full Linux |
DevOps is a culture + practices that improve collaboration between Dev & Ops teams.
The process used to develop software:
Agile breaks software into small deliverables. Scrum uses sprints (1–2 weeks).
Linux is the backbone of DevOps. You must understand commands, users, permissions, and SSH.
ls → list files
pwd → print working directory
cd → change directory
touch → create file
mkdir → create folder
rm -rf → remove files/folders
sudo adduser username
chmod 755 file.sh
chown user:user file
ssh username@server-ip
ssh -i key.pem ubuntu@server-ip
Git tracks changes, GitHub stores repositories remotely.
git init
git add .
git commit -m "first commit"
git push origin main
git branch feature/login
git checkout feature/login
git merge feature/login
Shell scripting is used to automate tasks in Linux.
#!/bin/bash
echo "Backup Started"
cp -r /home/user/data /home/user/backup
echo "Backup Completed"
Schedule tasks:
crontab -e
0 2 * * * /home/user/backup.sh → runs daily at 2AM