You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository is a complete, structured knowledge base covering every major topic a modern sysadmin or DevOps engineer needs to know β from Linux fundamentals to Kubernetes, from bash scripting to AWS, from Git basics to ELK Stack.
Every file is:
Self-contained β can be read independently
Cross-linked β every file links to related topics
Practical β real commands, real configs, real examples
Monitoring with Prometheus & Grafana β PromQL, alerting, exporters
43
ELK Stack β Elasticsearch, Logstash, Kibana, Filebeat, ILM
π Quick Start
Clone and Open
# Clone the repository
git clone https://github.com/YOUR_USERNAME/sysadmin-notes.git
cd sysadmin-notes
# Start at the master index# Open 00_INDEX.md in your preferred viewer
# Find large files
find / -xdev -size +100M -exec ls -lh {} \;2>/dev/null | sort -k5 -rh | head -20
# Top 10 CPU processes
ps aux --sort=-%cpu | head -11
# Check all service statuses
systemctl list-units --type=service --state=failed
# Disk usage sorted
du -sh /*2>/dev/null | sort -rh | head -20
# Watch logs in real time
journalctl -f --since today
# Active network connections
ss -tulpn | grep LISTEN
Git One-Liners
# Undo last commit (keep changes staged)
git reset --soft HEAD~1
# Delete all local branches that are merged
git branch --merged | grep -v '\*\|main\|master'| xargs git branch -d
# Search all commits for a string
git log -S "function_name" --oneline
# Show what changed in last commit
git show --stat HEAD
# Clean untracked files (dry run first!)
git clean -nd && git clean -fd
Docker One-Liners
# Remove all stopped containers + unused images
docker system prune -af
# Shell into running container
docker exec -it $(docker ps -qf "name=myapp") bash
# Show logs since 1 hour ago
docker logs --since=1h myapp
# Resource usage live
docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
Kubernetes One-Liners
# Get all resources in namespace
kubectl get all -n production
# Watch pod restarts
kubectl get pods -w --all-namespaces | grep -v Running
# Debug with temporary pod
kubectl run -it --rm debug --image=busybox --restart=Never -- sh
# Get events sorted by time
kubectl get events --sort-by='.lastTimestamp' -A
π€ Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch: git switch -c add/topic-name
Follow the existing file format and cross-linking style
Include at least one Mermaid diagram for architecture topics