Rakesh Jain Profile picture
Oct 9, 2021 β€’ 12 tweets β€’ 4 min read β€’ Read on X
Linux Networking Tools -

ss, nmap, dig, netcat, ping, tcpdump, socat, top, ethtool

A Thread πŸ‘‡
SS -

ss command is a tool that is used for displaying network socket related information on a Linux system.
nmap -

Nmap is short for Network Mapper. It is an open-source Linux cmd-line tool that is used to scan IPs & ports in a nw & to detect installed apps. Nmap allows nw admins to find which devices r running on their nw, discover open ports & services, and detect vulnerabilities.
ping & traceroute-

Ping cmd is used to test d ability of d src system to reach a specified destination system.

Traceroute is a nw diagnostic tool used to track in realtime d pathway taken by a pkt on an IP nw from src to dest,reporting d IPaddr of all d routers it pinged in b/n
ethtool -

Ethtool is a Network Interface Card (NIC) utility/configuration tool. Ethtool allows you to query and change your NIC settings such as the Speed, Port, auto-negotiation and many other parameters.
dig -

Dig (Domain Information Groper) is a powerful cmd-line tool for querying DNS name servers.

It allows you to query info abt various DNS records, including host addresses, mail exchanges, & name servers. A most common tool among sysadmins for troubleshooting DNS problems.
netcat -

Netcat is one of d powerful networking tool,security tool or nw monitoring tool. It acts like cat cmd over a nw.

It is generally used for:
Port Scanning /listening/redirection
open Remote connections
Read/Write data across network
Network debugging
Network daemon test
socat -

The socat command shuffles data between two locations. One way to think of socat is as the cat command which transfers data between two locations rather than from a file to standard output.
tcpdump -

Tcpdump is a command line utility that allows you to capture and analyze network traffic going through your system. It is often used to help troubleshoot network issues, as well as a security tool.
top -

The top command is used to show the active Linux processes. It provides a dynamic real-time view of the running system. Usually, this command shows the summary information of the system and the list of processes or threads which are currently managed by the Linux kernel.
wireshark -

Wireshark is a packet sniffer and analysis tool. It captures network traffic on the local network and stores that data for offline analysis.
Retweet the thread if you find it useful. You can follow me for more such content.

PC: Julia Evans / Comparitech

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Rakesh Jain

Rakesh Jain Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @devops_tech

Aug 7
Understanding sudo, su, su - and sudo su !

A Thread with examples πŸ‘‡ Image
1/8 🐦 Welcome to today's thread!

Let's dive into the world of user privileges on Linux systems. We'll explore the differences between sudo, su, and sudo su.

#Linux #UserPrivileges
2/8 🐦 First up, sudo!

sudo stands for "Superuser Do." It allows regular users to perform administrative tasks by temporarily gaining root (superuser) privileges. Just add "sudo" before a cmd to execute it with elevated privileges. eg: sudo apt-get update updates packages.
Read 23 tweets
Aug 5
Load Balancer vs Reverse Proxy vs API Gateway

A Thread 🧡 Image
1/ πŸ’‘ Let's dive into the world of networking and infrastructure components: Load Balancer, Reverse Proxy, and API Gateway.

They play distinct roles in managing web traffic.
2/ πŸ”„ Reverse Proxy:
A reverse proxy is like a middleman between clients and servers. It handles requests on behalf of servers, often providing benefits like security, load balancing, and caching.

Example: Nginx, Apache.
Read 26 tweets
Jul 25
All possible reasons a Kubernetes Pod can go into CrashLoopBackOff πŸ§΅πŸ‘‡ PS: https://sysdig.com/wp-content/uploads/What-is-Crashloopbackoff-01.png
1/🧡 What causes a Kubernetes Pod to go into CrashLoopBackOff?
Here’s a deep-dive thread on ALL the possible reasons and how to fix them. πŸš‘πŸ³
#Kubernetes #DevOps #CrashLoopBackOff
2/ Container Exit Code != 0
Your container crashed due to an error in the app.

πŸ› οΈ Fix: Check logs with kubectl logs <pod> and fix code/config causing the error.
Read 36 tweets
Jun 30
🧡 10 Things Every DevSecOps Engineer Must Know About Kubernetes Security β€” with real examples πŸ‘‡ Image
1/
πŸ” RBAC > cluster-admin
Grant access based on roles, not titles.
βœ… Example: Allow devs to view pods only: Image
2/
πŸ•΅οΈ Enable Audit Logs
Track who deleted a service or changed a config.

βœ… Example: Enable auditing via kube-apiserver:
--audit-log-path=/var/log/k8s-audit.log
Read 18 tweets
May 5
🧡 Kubernetes Troubleshooting Series:

Scenario: Pod stuck in ImagePullBackOff or ErrImagePull?

Here’s a step-by-step thread to troubleshoot and fix it like a pro. πŸ’‘

#Kubernetes #DevOps #Containers Image
1/ Why does this happen?

When a pod can’t pull the container image, it may get stuck in ImagePullBackOff or ErrImagePull.

This commonly occurs due to:
- Private Docker registries 🏰
- Wrong image names/tags ❌
- Expired or missing imagePullSecrets πŸ”
2/ Step 1 – Inspect Pod Events

Run:
kubectl describe pod <pod-name>

Check the Events section. Look for errors like:
- pull access denied
- manifest not found
- rpc error from daemon

These reveal the root cause.
Read 13 tweets
Mar 26
🐧 AWK Master Cheat Sheet: 15 Must-Know Commands for DevOps & Linux Admins πŸ–₯️ Image
1️⃣ Basic Print

Print the first column of a file:
awk '{print $1}' file.txt

πŸ‘‰ Extracts and prints the first field from each line.
2️⃣ Print Specific Columns

Print columns 1 and 3 separated by -:
awk '{print $1 "-" $3}' file.txt

πŸ‘‰ Useful for structured data processing.
Read 18 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(