user@dev:~$ fingerfsck.me

File System Checks, Kubernetes & Sysadmin Command Reference

⚡ tmux Essentials
Start new named session
tmux new -s <session_name>
List active sessions
tmux ls
Attach to existing session
tmux a -t <session_name>
Split pane horizontally / vertically
Ctrl+b " (horizontal) | Ctrl+b % (vertical)
Navigate between panes
Ctrl+b <arrow_key>
Detach from session
Ctrl+b d
🌿 Git Operations
Undo last commit (keep local changes)
git reset --soft HEAD~1
Nuke all local uncommitted changes
git reset --hard HEAD && git clean -fd
Interactive rebase last N commits
git rebase -i HEAD~3
Stash including untracked files
git stash -u
Pretty inline git log
git log --oneline --graph --decorate --all
☸ Kubernetes (kubectl)
Quick shell inside running pod
kubectl exec -it <pod_name> -- /bin/sh
Stream logs for specific container
kubectl logs -f <pod_name> -c <container>
Get all resources in all namespaces
kubectl get all -A
Port forward pod to localhost
kubectl port-forward pod/<pod_name> 8080:80
Force delete stuck pod
kubectl delete pod <pod> --grace-period=0 --force
🔴 OpenShift (oc)
Switch project / namespace
oc project <project_name>
Copy file from local to pod
oc cp /local/path <pod_name>:/remote/path
Get current cluster status / user info
oc status && oc whoami
Debug node directly (spawns root shell)
oc debug node/<node_name>
🐧 Linux & File Systems
Manual ext4 filesystem repair (unmounted)
fsck.ext4 -f /dev/sdX1
Query user via finger protocol
finger user@hostname
Top 10 largest directories in path
du -a /path | sort -n -r | head -n 10
Check active listening ports & PIDs
ss -tulpn
Copied to clipboard!