1. π§ Linux Fundamentals for DevOps Engineers
Open to Work | Cloud & DevOps Engineer | AWS | Kubernetes | Terraform | CI/CD | Automations | Available for Full-Time / Freelance / Mentorship
πΉ Why Linux is Important for DevOps?
Linux is the backbone of:
Cloud servers
Containers
CI/CD runners
Kubernetes nodes
πΉ Process vs Thread
Process: Independent execution unit with its own memory
Thread: Lightweight execution unit sharing process memory
π Example: One Java process running multiple threads.
πΉ Check CPU, Memory & Disk Usage
top
htop
free -m
df -h
πΉ Find High Memory Consuming Process
ps aux --sort=-%mem | head
πΉ System Monitoring Commands Explained
| Command | Use |
| top | Real-time stats |
| vmstat | CPU, memory & IO |
| free | RAM usage |
| df | Disk usage |
πΉ Check and Kill a Process
ps -ef | grep java
kill -9 <PID>
πΉ Find Which Service Uses a Port
netstat -tulnp | grep 8080
ss -tulnp
lsof -i :8080
πΉ Linux File Permissions
chmod 755 script.sh
chown user:group script.sh
- r=4, w=2, x=1
πΉ Linux Logs
tail -f /var/log/syslog
journalctl -u docker
journalctl -xe
πΉ Soft Link vs Hard Link
ln -s file softlink
ln file hardlink
| Soft | Hard |
| Cross FS | Same FS |
| Breaks | Safe |
πΉ Troubleshooting Tips
High CPU β
top,htopLow Disk β
du -sh,df -h
πΉ Uptime & Reboot History
uptime
last reboot
πΉ Scheduling Jobs
crontab -e
0 2 * * * backup.sh
πΉ find, grep, awk, sed
find /var -name "*.log"
grep ERROR app.log
awk '{print $1}' file.txt
sed 's/dev/prod/g' file.txt
π― Key Takeaways
Linux is non-negotiable for DevOps
Monitoring & troubleshooting are daily tasks
These commands are interview favorites