Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

In windows, I can use netview to see all the computers on the LAN network, but what's the corresponding command on linux?

share|improve this question
up vote 3 down vote accepted

yes you can.

open your terminal and type as who -a . that will list all information .

else you can use nmap also . great network tool.

you can get it by sudo apt-get install nmap

if you assume you IP starts from then you can list all Computers connected with the LAN with this command


The above command will scan from to IP's and list you which is up and which is down .

share|improve this answer
Or use Zenmap if you want a graphical interface for nmap – bodhi.zazen Sep 30 '12 at 5:10

You can type

arp -a

commandin terminal to see computers on Lan.

share|improve this answer

net view on Windows is used for Active Directory. You can emulate this with Samba.


$ sudo apt-get install samba

This will install net commands that you can use to join the Windows domain, such as:

$ net help join
net rpc join -U <username>[%%password] <type>
  Join a domain
    username    Name of the admin user    password  Password of the admin user, will prompt if not specified
    type    Can be one of the following:
        MEMBER  Join as member server (default)
        BDC Join as BDC
        PDC Join as PDC

You can also use arp-scan, found here, if you're only looking to discover hosts on the network.

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.