1
vote
0answers
66 views

Command for finding open ports

On my linux servers I have this alias set: alias ns="sudo lsof -Pi|grep -v ESTABL|grep -v CLOSED|grep -v -e '->' | tr -s ' ' '\t' | awk '{print $3 "\t" $8 "\t" $5 "\t" $9 "\t" $1}'| column ...
2
votes
4answers
474 views

How to use ifconfig to show active interface only

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below. en0: ...
1
vote
2answers
2k views

Checking if I can reach some ports from my computer

Is there a terminal command or something on OSX that I can use to test if I can reach some ports on a remote server? I know these ports are reachable on that server, because I can access them from ...
1
vote
1answer
264 views

Block Internet Connection through Terminal on OSX

Even though I don't have administrative privileges, can I block Internet connection on my Mac OS 10.8 machine, through the terminal? I want to do this because I am too lazy to disconnect ethernet ...
1
vote
0answers
564 views

Quickly check whether many network hosts are up-and-running

Objective: check if a host is up-and-running on the network, with a method that can be efficiently parallelized over many hosts. Emphasis on a QUICK turnaround of the check. Reason to emphasise ...
1
vote
2answers
6k views

How to put Mac OS X wireless adapter in monitor mode

I'm searching for a equivalent of "iwconfig eth0 mode Monitor" in Mac OS. From man iwconfig mode Monitor does the following: "the node is not associated with any cell and passively monitor all ...
2
votes
1answer
1k views

How to get wireless access point information from MacOS terminal

I'm trying to gather information about surrounding access points but can't find the right tools to do that. For Linux there are tools like iwconfig and iwlist, but it looks like they are not ...
3
votes
1answer
399 views

Verbose DNS query to see DNS query order?

I typically determine the IP of a host by doing: $ host -t A example.com. Is there a more verbose version of this that tells me whats happening in the background, specifically the order of what is ...
4
votes
2answers
376 views

How to synchronize a networked drive and an external drive (Ubuntu & OS X)?

In light of a recent hardware failure, I've decided that it's time to be a little less lax regarding back-ups. What I have: An Ubuntu 10.10 'server/NAS' A MacBook 5,2 A WD external HDD The server ...