1. htop
-
Usage: Interactive process viewer that’s much more advanced than
top
. -
Command:
htop
- Description: Shows processes, memory, and CPU usage in a user-friendly, color-coded layout.
2. nmap
- Usage: Network mapping and discovery.
-
Command:
nmap -sP 192.168.1.0/24
- Description: Scans a network range to identify active devices.
3. rsync
- Usage: Syncs directories and files locally or across networked systems.
-
Command:
rsync -av /source /destination
- Description: Great for backups and maintaining directories across systems.
4. tmux
- Usage: Terminal multiplexer allowing multiple sessions.
-
Command:
tmux
- Description: Enables you to switch between several programs in a single terminal.
5. awk
- Usage: Text processing and data extraction from files.
-
Command:
awk '{print $1}' file.txt
- Description: Powerful for extracting and formatting text data.
6. dig
- Usage: DNS lookup tool.
-
Command:
dig example.com
- Description: Provides DNS information for domain troubleshooting.
7. tcpdump
- Usage: Packet sniffer for network troubleshooting.
-
Command:
sudo tcpdump -i eth0
- Description: Allows monitoring of incoming and outgoing packets.
8. lsof
- Usage: Lists open files and the processes using them.
-
Command:
lsof -i :80
- Description: Essential for diagnosing file locks and network usage.
9. jq
- Usage: Processes JSON data.
-
Command:
jq '.' file-name.json
- Description: Parses and formats JSON data from files or APIs.
10. iftop
- Usage: Monitors bandwidth usage per IP.
-
Command:
sudo iftop
- Description: Real-time network traffic monitoring by IP address.
11. strace
- Usage: Traces system calls and signals.
-
Command:
strace -p <PID>
- Description: Useful for debugging by tracing system calls from a process.
12. ip a
- Usage: Displays network interfaces and IP address configuration.
-
Command:
ip a
- Description: Essential for managing network settings on modern Linux systems.
13. grep -r
- Usage: Searches text within files recursively.
-
Command:
grep -r 'search-term' /path/to/directory
- Description: Locates specific text across directories, useful for log analysis.
14. iostat
- Usage: Monitors CPU and I/O statistics.
-
Command:
iostat -x 1
- Description: Helps in understanding disk and CPU usage patterns over time.
15. iptables
- Usage: Configures firewall rules.
-
Command:
sudo iptables -L
- Description: Manages network traffic control for security purposes.
16. nc
(Netcat)
- Usage: Network utility for debugging and testing.
-
Command:
nc
- Description: Versatile for creating connections, debugging, and port scanning.
17. sar
- Usage: Collects, reports, and saves system activity information.
-
Command:
sar -u 1 5
- Description: Monitors performance metrics, including CPU, memory, and network.
18. atop
- Usage: Monitors system performance.
-
Command:
atop
- Description: Provides a detailed look at processes, memory, disk, and network.
19. watch
- Usage: Repeats a command at fixed intervals.
-
Command:
watch -n 1 df -h
- Description: Useful for monitoring outputs in real-time, such as disk usage.
Support if you found this helpful😉
No Money 🙅🏻♀️ just Subscribe
Do check: https://linktr.ee/DevOps_Descent
Youtube: https://shorturl.at/lVi2G
Top comments (12)
Have you tryied
Because most of the time cat is not needed.
even simple commands hide some tricks
But I would add gnu parallel on this list:
Thanks!
I will update
jq
usage in my post.parallel
is a nice addition, I will cover this in my next blog post.Stay tuned.
If anyone's curious,
btop
is a much cleaner version of atop.Glad someone shared, thanks 🤗
github.com/nvbn/thefuck
Must have 🥱
Thanks for this, the name caught me😆😆
This is a great list! I'm bookmarking this for future reference. It's especially helpful to have the basic usage example included with each command.
Noted ✍️for the next post, thanks 🤗
iptables is kind of deprecated now. It has been replaced by nftables. Iptables lives on as a compatibility layer with a translation from nftables rules.
Nice catch, thanks for the information 😉
netstat
Get info on open ports and the processes
Thanks for mentioning 🤗
I'll add this to the next blog
Some comments may only be visible to logged-in visitors. Sign in to view all comments.