Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

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 192.168.1.0/24

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

share|improve this answer
add comment

Your Answer

 
discard

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.