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.

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .