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
smbclient -L / nmap -sn
smbclient -L / nmap -sn
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 option | Use |
|---|---|
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 |
arp-scan -l | ARP 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.
| Distribution | Package manager / base | Equivalent command | Difference 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