Posts

Linux Commands

  🚀 Linux Commands Every Cloud / DevOps / SRE Must Master 📁 File & Directory (daily bread-and-butter) pwd # show current directory ls -lah # list files with size + permissions tree # folder structure view cd # change directory mkdir # create directory rm -rf # delete files/folders cp -r # copy files/folders mv # move/rename find / -name # search files locate file # fast file search du -sh * # folder sizes df -h # disk usage 📄 File Viewing & Editing (logs debugging gold) cat file # print file less file # scroll safely head -n 20 # first lines tail -f log # live logs (VERY important) vim / nano # edit files wc -l # count lines 🔎 Text Processing (real DevOps superpower) grep "error" # search text grep -ri # recursive search awk '{print $1}' # column ...

Recommendation _ Plan

  What I recommend (realistic plan) Since you’re serious, here’s how to use this week: Day-wise breakdown Day 1 Filesystem + commands + navigation 👉 create/delete/copy/move 100 times Day 2 Permissions + users + ownership 👉 intentionally break permissions and fix Day 3 Processes + monitoring + kill 👉 create CPU hog → debug Day 4 Services + logs + systemctl 👉 install nginx → break → fix Day 5 Disk + memory + packages 👉 fill disk → clean → expand Day 6 Networking full day 👉 ping/dig/curl/ssh/ports Day 7 ONLY troubleshooting labs (all 40) 👉 simulate real issues No theory. Only terminal. 🔥 My honest advice (very important) If you want real confidence , do this: Setup: Install: Ubuntu VM or EC2 Then daily: Break something intentionally Fix it Repeat Examples: stop nginx delete config change permission wrong block port kill DNS fill disk This teaches 10x faster than notes. Final answer for you Since you’re from C...

20 Linux + Networking Troubleshooting Labs (with commands + comments)

Image
  🚀 20 Linux + Networking Troubleshooting Labs (with commands + comments) 🐧 Linux Labs 4 ✅ Lab 1 — Disk Full Issue Problem Server says: No space left on device df -h # check disk usage du -sh /* 2>/dev/null # find which folder is large cd /var/log # logs usually grow big du -sh * # find biggest log rm -rf old.log # delete old logs ✅ Lab 2 — High CPU Usage Problem Server slow top # find high CPU process ps aux -- sort =-%cpu | head # sort by CPU usage kill PID # stop process kill -9 PID # force kill if needed ✅ Lab 3 — High Memory Usage free -m # memory summary top # check memory hog process ps aux -- sort =-%mem | head # sort by memory kill PID # stop process ✅ Lab 4 — Service Not Starting systemctl status nginx # check failure reason journalctl -xe # de...

Week 1 – Linux + Networking Foundations (Cloud Base)

Image
  🚀 Week 1 – Linux + Networking Foundations (Cloud Base) 🐧 Linux Section 4 ✅ File System Commands pwd # show current directory path ls # list files ls -l # long listing (permissions, owner, size) ls -a # show hidden files ls -lh # human readable sizes ls -lrt # latest modified files at bottom cd /var/log # move to log directory cd .. # go back one directory mkdir test # create directory mkdir -p a/b/c # create nested directories cp file1 file2 # copy file cp -r dir1 dir2 # copy directory recursively mv file newfile # rename file mv file /tmp # move file rm file # delete file rm -r dir # delete directory rm -rf dir # force delete (careful ⚠️) find / -name nginx # search file by name du -sh * ...