← All commands
Topic hub Networking
Windows Linux Networking

Windows net view equivalent in Linux

Lists computers visible on the local network and shared resources on a specific host.

Windows net view
Linux equivalents
Debian/Ubuntu same command
smbclient -L / nmap -sn
Fedora same command
smbclient -L / nmap -sn
Arch same command
smbclient -L / nmap -sn

Overview

What this command does

Lists computers visible on the local network and shared resources on a specific host.

Migration tip: For Windows shares, use smbclient -L //hostname. For discovering all live devices on the subnet, nmap -sn is the most reliable method.

Practical tasks

Common use cases

View computers and shares on the network

Lists computers visible on the local network and shared resources on a specific host.

smbclient -L //server

List Windows shares on a server

nmap -sn 192.168.1.0/24

Discover live hosts on subnet

avahi-browse -a

Browse mDNS/Bonjour services

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

smbclient -L //192.168.1.10 -U john
sudo nmap -sn 192.168.1.0/24

Walkthrough

Examples with explanations

# Windows: net view

# List shares on a Windows server:
smbclient -L //192.168.1.10 -U john

# Discover all live hosts on network:
sudo nmap -sn 192.168.1.0/24

Reference

Common options and variations

Command or optionUse
smbclient -L //serverList Windows shares on a server
nmap -sn 192.168.1.0/24Discover live hosts on subnet
avahi-browse -aBrowse mDNS/Bonjour services
arp-scan -lARP scan local network

Distro differences

Debian/Ubuntu vs Fedora vs Arch

This command is the same on Debian/Ubuntu, Fedora and Arch Linux when the relevant tool is installed.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command smbclient -L / nmap -sn Same command on this distribution.
Fedora same command smbclient -L / nmap -sn Same command on this distribution.
Arch same command smbclient -L / nmap -sn Same command on this distribution.

Keep learning

Related Networking commands