Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Network Troubleshooting in Terminal on Mac OS X

Featured Replies

I realize I could use the Network Utility to do most of what typical troubleshooting does but I am more familar with the command prompt. When I use Windows I run my ping, tracert, nslookup, nbtstat, netstat and ipconfig.

I would like to know the common commands I would use on my lovely mac for the same functionality and then some.

So in short, compare the Apple Mac OS X Network Utility and Windows command prompt to what I can do in the terminal to match or beat what the others offer (which I know it can).

Okay, tall order but I believe I can get this started.

Network Utility - Info

Mac OS X: $ifconfig

Network Utility - NetStat: $netstat

Display routing table information: $netstat -r

Display comprehensive network statistics for each protocol: $netstat -s

Display multicast information: $netstat -g

Display the state of all current socket connections: $netstat -ta

Network Utility - Appletalk:

Network Utility - Ping: $ping or $nmap -sP -T Insane 192.168.1.0/24 (for an entire range)

Network Utility - Lookup: $nslookup

> server name server delivering the response

> set type=mx mx will lookup all mail records

> microsoft.com machine being looked up

Truthfully dig is a better command to use here instead of nslookup

Network Utility - Traceroute: $traceroute

Network Utility - Whois: $whois bbc.co.uk -h whois.nic.uk

bbc.co.uk is who we are trying to find out about

whois.nic.uk is the whois server we are using.

Network Utility - Finger: $finger dennis or $finger mywiseguys@gmail.com

Network Utility - Port Scan: $stroke host start_port end_port or $netstat -a or $nmap -Up 143 166.66.0.0/16 166.67.0.0/16

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.