← All commands
Topic hub Networking
Windows Linux Networking Expanded guide

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

On Windows, "net view" is used to view computers and shares on the network. On Linux, the closest practical mapping shown here is "smbclient -L / nmap -sn". Lists computers visible on the local network and shared resources on a specific host. This reference is grouped under Networking.

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

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows net view maps to smbclient -L / nmap -sn for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

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

Debian/Ubuntu, Fedora and Arch all use "smbclient -L / nmap -sn" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.

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