
One of the best Linux cheat sheets to have for all the DevOps work to automate their daily tasks.
System Intelligence:
• htop - Like top, but actually useful
• df -h - Because disk space issues find you
• netstat -tulpn - Your network's story
• lsof - What's using that port?
• ps aux | grep - Finding that runaway process
• dmesg - Kernel's gossip channel
File Operations:
• find . -name - Your file search superhero
• tar -xvf - Unzip like a pro
• rsync - scp's smarter cousin
• sed -i - Stream editing wizard
• awk - Text manipulation magic
• grep -r - Find text like a detective
Container Life:
• docker stats - Container vital signs
• docker logs -f - Live container stories
• crictl pods - Kubernetes container whisperer
• kubectl get pods - K8s status check
Monitoring Magic:
• tail -f - Log watching party
• watch - Command on repeat
• vmstat - Memory tales
• iostat - Disk performance poetry
Network Ninja:
• curl -v - HTTP storyteller
• nc - Network swiss army knife
• dig - DNS detective
• ss - Socket statistics
Security Stuff:
• chmod - Permission painter
• chown - Ownership wizard
• openssl - Certificate craftsman
• ssh-keygen - Key creator
Process Control:
• systemctl - Service sorcery
• journalctl - Log time machine
• kill -9 - Process terminator
• nice - Priority painter
Performance Profiling:
• strace - System call spy
• tcpdump - Network packet poet
• sar - System activity reporter
• perf - Performance profiler
Text Wrangling:
• cut -d - Column collector
• sort | uniq -c - Pattern finder
• tr - Character changer
• wc -l - Line counter
File System:
• du -sh - Directory size detective
• fdisk -l - Disk detective
• mount - filesystem connector
• ln -s - Symlink sorcerer
Shell Shortcuts:
• history | grep - Command time machine
• !! - Last command replay
• ctrl+r - Reverse search magic
• alias - Command shortcut creator
Miscellaneous Mastery:
• tee - Output splitter
• xargs - Command multiplier
• at - Job scheduler
• screen/tmux - Terminal multiplexer
Stay tuned for more such cheat sheets of DevOps!
Disclaimer: The views expressed herein are for reference only and don't necessarily represent the official views of Alibaba Cloud.
Setting Up a Secure CI/CD Pipeline for Node.js Applications on Alibaba Cloud
Alibaba Cloud Data Intelligence - August 7, 2024
Alibaba Clouder - October 27, 2020
Alibaba Clouder - December 23, 2020
Alibaba Developer - July 30, 2020
Alibaba Clouder - July 2, 2020
Alibaba Clouder - March 5, 2019
DevOps Solution
Accelerate software development and delivery by integrating DevOps with the cloud
Learn More
Alibaba Cloud Linux
Alibaba Cloud Linux is a free-to-use, native operating system that provides a stable, reliable, and high-performance environment for your applications.
Learn More
ECS(Elastic Compute Service)
Elastic and secure virtual cloud servers to cater all your cloud hosting needs.
Learn More
Super Computing Cluster
Super Computing Service provides ultimate computing performance and parallel computing cluster services for high-performance computing through high-speed RDMA network and heterogeneous accelerators such as GPU.
Learn MoreMore Posts by Neel_Shah