← All commands
Topic hub Networking
Windows Linux Networking SMB

Windows net view \server equivalent in Linux

Lists shares exposed by an SMB server.

Windows net view \server
Linux equivalents
Debian/Ubuntu apt package: samba-client / cifs-utils
smbclient -L //server -U user
Fedora dnf package: samba-client / cifs-utils
smbclient -L //server -U user
Arch pacman package: smbclient / cifs-utils
smbclient -L //server -U user

Overview

What this command does

Lists shares exposed by an SMB server.

Migration tip: Check the distro-specific rows before copying; package names and service names can differ even when the tool name is similar.

Practical tasks

Common use cases

List SMB shares

Lists shares exposed by an SMB server.

smbclient -L //server -U user

List SMB shares

smbclient --help

Show command help when supported

man smbclient

Open the manual page when installed

Ready to run

Copyable Linux commands

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

smbclient -L //server -U user

Walkthrough

Examples with explanations

# Windows equivalent: net view \server
smbclient -L //server -U user

Reference

Common options and variations

Command or optionUse
smbclient -L //server -U userList SMB shares
smbclient --helpShow command help when supported
man smbclientOpen the manual page when installed

Distro differences

Debian/Ubuntu vs Fedora vs Arch

The equivalent is shown for Debian/Ubuntu, Fedora and Arch. Some rows use a different package manager or helper tool where Linux distributions commonly diverge.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu apt package: samba-client / cifs-utils smbclient -L //server -U user Same command on this distribution.
Fedora dnf package: samba-client / cifs-utils smbclient -L //server -U user Same command on this distribution.
Arch pacman package: smbclient / cifs-utils smbclient -L //server -U user Same command on this distribution.

Keep learning

Related Networking commands