DEV Community

Cover image for 7 Pro Unix Command have you checked?😎
DevOps Descent
DevOps Descent

Posted on • Updated on

7 Pro Unix Command have you checked?😎

πŸš€ 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:

Image description

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:

Image description

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:

Image description

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:

Image description

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:

Image description

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:

Image description

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:

Image description

πŸš€ 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! πŸ˜„

Check it on youtube: https://shorturl.at/lVi2G

Top comments (1)

Collapse
 
cavo789 profile image
Christophe Avonture

Didn't know oha. Very nice. Thanks for the tip.