Qugstart
Shell snippets in a monospace notebook.

Shell Snippets

Reusable shell snippets for quick diagnostics and safe operational workflows.

Small shell commands save incidents when written clearly. These snippets are trimmed for readability and easy copy-paste validation.

Service and process checks

1
2
3
ps -ef | grep -E "node|rails|nginx" | grep -v grep
ss -lntp
journalctl -u your-service -n 100 --no-pager

Storage checks

1
2
3
lsblk -f
mount | grep -E "xfs|ext4"
df -hT

Git checks

1
2
3
git remote -v
git branch -vv
git log --oneline --decorate -n 20