← All commands
Topic hub Networking
Windows Linux Networking Command guide 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

On Windows, "net view \server" is used to list SMB shares. On Linux, the closest practical mapping shown here is "smbclient -L //server -U user". Lists shares exposed by an SMB server. This reference is grouped under Networking → SMB.

Migration tip: The Linux command "smbclient -L //server -U user" stays consistent across the compared distributions, but the package or base component can differ. Use the Debian/Ubuntu, Fedora or Arch row that matches the system you are administering.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows net view \server maps to smbclient -L //server -U user 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

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 command "smbclient -L //server -U user" is the same in all three rows, while package or base details differ: Debian/Ubuntu uses apt package: samba-client / cifs-utils; Fedora uses dnf package: samba-client / cifs-utils; Arch uses pacman package: smbclient / cifs-utils.

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