Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there Linux command equal to Net View in Windows, that shows hostnames in your network?

I am in a VPN network and want to see computer names in my network.

share|improve this question

You can achieve this with the program nmap. If you specify an address in CIDR notation, it will scan all IPs in that block.

nmap -sP

The flag -sP will bypass port scanning and just indicate whether the host is up based on ping.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.