nmap get all active online ips from specific network

nmap -n -sn 192.168.1.0/24 -oG - | awk '/Up$/{print $2}'
scan whole specific network for active online ips
Sample Output
192.168.1.79
192.168.1.82
192.168.1.83
192.168.1.84
192.168.1.86
192.168.1.87
192.168.1.89
192.168.1.94
192.168.1.97
192.168.1.100
192.168.1.101
192.168.1.104
192.168.1.110
192.168.1.119
192.168.1.120

7
By: aysadk
2019-09-04 13:31:53

What Others Think

learned alot here thanks for posting this welding miami !
looneyhans · 43 weeks and 3 days ago
Our goal is to help married and single people find their destiny. Here married dating sites you can really find a girl that suits you. Even if you are married and looking for a relationship on the side - now it is quite possible.
LenardaCroyle · 41 weeks and 3 days ago
financial advisor santa rosa How can I get more infos about that products
yeoyeo · 37 weeks and 1 day ago
love the idea! soo glad i found this site! jet
sammm · 34 weeks ago
what specific network metal sheds des moines
geebranz · 19 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: