π 7 Essential CLI Tools for Better AWS EC2 Management π₯οΈ
Managing your AWS EC2 instance efficiently requires the right set of tools. In this post, weβll explore seven essential command-line tools that can make your workflow more effective. Each tool has a unique purpose, from disk usage monitoring to HTTP benchmarking.
1. π duf - Disk Usage/Free Utility
duf is a user-friendly alternative to df
. It shows disk usage in a clean and colorful format.
sudo apt install duf # Install duf on Ubuntu
duf # Run the command to check disk usage
Example output:
2. π± dust - More Intuitive du Command
dust is a Rust-based tool that displays disk usage with directory sizes in a user-friendly, tree-like format.
sudo apt install cargo # Install Rust package manager
cargo install du-dust # Install dust
dust # Run the dust command
Example output:
3. πΎ dua - Disk Usage Analyzer
dua (Disk Usage Analyzer) is a fast and intuitive tool for analyzing disk usage in your terminal.
sudo apt install dua-cli # Install dua
dua # Run dua to see your disk usage
Example output:
4. π bat - A Better 'cat' Command
bat is a drop-in replacement for cat
but with syntax highlighting and Git integration, making it great for reading code files in your terminal.
sudo apt install bat # Install bat on Ubuntu
bat ~/.bashrc # Example usage to display a file
Example output:
5. π HTTPie - User-Friendly HTTP Client
HTTPie simplifies API testing and interacting with HTTP servers. Itβs a modern alternative to curl
.
sudo apt install httpie # Install HTTPie
http GET https://api.github.com/repos/httpie/httpie # Example GET request
Example output:
6. β‘ oha - HTTP Load Testing Tool
oha is a fast, terminal-based HTTP load testing tool, useful for benchmarking APIs and web services.
sudo apt install oha # Install oha
oha -n 1000 -c 50 https://example.com # Example load test
Example output:
7. π ctop - A Top for Containers
ctop provides a real-time overview of your running containers, including metrics like CPU, memory, and network usage.
sudo apt install ctop # Install ctop
ctop # Run ctop to monitor container usage
Example output:
π Conclusion
With these seven tools, managing your AWS EC2 instance becomes much easier. Whether you're checking disk usage, testing HTTP endpoints, or managing Docker containers, these tools can significantly improve your workflow.
Feel free to share your favorite CLI tools in the comments below! π
Support if you found this helpfulπ
No Money π π»ββοΈ just Subscribe
Do check: https://linktr.ee/DevOps_Descent
Youtube: https://shorturl.at/lVi2G
Top comments (4)
Used dua on my Macbook to clean up some space, what an impressive terminal app!
Glad it helped π
Didn't know oha. Very nice. Thanks for the tip.
Thanks for the appreciation π