{"id":412,"date":"2025-09-18T11:49:23","date_gmt":"2025-09-18T11:49:23","guid":{"rendered":"https:\/\/www.eatmaja.co.id\/eka\/?p=412"},"modified":"2025-09-18T11:49:23","modified_gmt":"2025-09-18T11:49:23","slug":"the-only-linux-command-list-youll-need-to-bookmark","status":"publish","type":"post","link":"https:\/\/www.eatmaja.co.id\/eka\/2025\/09\/18\/the-only-linux-command-list-youll-need-to-bookmark\/","title":{"rendered":"The Only Linux Command List You&#8217;ll Need to Bookmark"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Daily Heroes:<br>\u2022 ps aux | grep {process} &#8211; Find that sneaky process<br>\u2022 lsof -i :{port} &#8211; Who&#8217;s hogging that port?<br>\u2022 df -h &#8211; The classic &#8220;we&#8217;re out of space&#8221; checker<br>\u2022 netstat -tulpn &#8211; Network connection detective<br>\u2022 kubectl get pods | grep -i error &#8211; K8s trouble finder<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Log Warriors:<br \/>\u2022 tail -f \/var\/log\/* &#8211; Real-time log watcher<br \/>\u2022 journalctl -fu service-name &#8211; SystemD log stalker<br \/>\u2022 grep -r &#8220;error&#8221; . &#8211; The error hunter<br \/>\u2022 zcat access.log.gz | grep &#8220;500&#8221; &#8211; Compressed log ninja<br \/>\u2022 less +F &#8211; The better tail command<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Container Whisperers:<br \/>\u2022 docker ps &#8211;format &#8216;{{.Names}} {{.Status}}&#8217; &#8211; Clean status check<br \/>\u2022 docker stats &#8211;no-stream &#8211; Quick resource check<br \/>\u2022 crictl logs {container} &#8211; Raw container stories<br \/>\u2022 docker exec -it &#8211; The container backdoor<br \/>\u2022 podman top &#8211; Process peek inside containers<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">System Detectives:<br \/>\u2022 htop &#8211; System resource storyteller<br \/>\u2022 iostat -xz 1 &#8211; Disk performance poet<br \/>\u2022 free -h &#8211; Memory mystery solver<br \/>\u2022 vmstat 1 &#8211; System vital signs<br \/>\u2022 dmesg -T | tail &#8211; Kernel&#8217;s recent gossip<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Network Ninjas:<br \/>\u2022 curl -v &#8211; HTTP conversation debugger<br \/>\u2022 dig +short &#8211; Quick DNS lookup<br \/>\u2022 ss -tunlp &#8211; Socket statistics simplified<br \/>\u2022 iptables -L &#8211; Firewall rule reader<br \/>\u2022 traceroute &#8211; Path finder<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">File Jugglers:<br \/>\u2022 find . -name &#8220;*.yaml&#8221; -type f &#8211; YAML hunter<br \/>\u2022 rsync -avz &#8211; Better file copier<br \/>\u2022 tar -xvf &#8211; The unzipper (yes, we all google this)<br \/>\u2022 ln -s &#8211; Symlink wizard<br \/>\u2022 chmod +x &#8211; Make it executable<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Performance Profilers:<br \/>\u2022 strace -p {pid} &#8211; System call spy<br \/>\u2022 tcpdump -i any &#8211; Network packet sniffer<br \/>\u2022 sar -n DEV 1 &#8211; Network stats watch<br \/>\u2022 uptime &#8211; Load average at a glance<br \/>\u2022 top -c &#8211; Classic process viewer<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Git Essentials:<br \/>\u2022 git log &#8211;oneline &#8211; History simplified<br \/>\u2022 git reset &#8211;hard HEAD^ &#8211; The &#8220;oops&#8221; eraser<br \/>\u2022 git stash &#8211; The work hider<br \/>\u2022 git diff &#8211;cached &#8211; What&#8217;s staged?<br \/>\u2022 git blame &#8211; The &#8220;who did this?&#8221; resolver<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Quick Fixes:<br \/>\u2022 sudo !! &#8211; Run last command with sudo<br \/>\u2022 ctrl+r &#8211; Command history search<br \/>\u2022 history | grep &#8211; Command time machine<br \/>\u2022 alias &#8211; Command shortcut maker<br \/>\u2022 watch &#8211; Command repeater<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Daily Heroes:\u2022 ps aux | grep {process} &#8211; Find that sneaky process\u2022 lsof -i :{port} &#8211; Who&#8217;s hogging that port?\u2022 df -h &#8211; The classic &#8220;we&#8217;re out of space&#8221; checker\u2022&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,9],"tags":[],"class_list":["post-412","post","type-post","status-publish","format-standard","hentry","category-cheat-sheet","category-linux"],"_links":{"self":[{"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/posts\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":0,"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/posts\/412\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/categories?post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eatmaja.co.id\/eka\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}