← All commands
Topic hub Networking
Windows Linux Networking Expanded guide

Windows net use equivalent in Linux

Mounts a network share (Windows SMB/CIFS share or NFS) so you can access it like a local folder.

Windows net use
→
Linux equivalents
Debian/Ubuntu same command
mount / smbclient
Fedora same command
mount / smbclient
Arch same command
mount / smbclient

Overview

What this command does

On Windows, "net use" is used to connect to network shares. On Linux, the closest practical mapping shown here is "mount / smbclient". Mounts a network share (Windows SMB/CIFS share or NFS) so you can access it like a local folder. This reference is grouped under Networking.

Migration tip: To mount Windows shared folders (SMB), you need the <code>cifs-utils</code> package. The share then appears as a regular directory in your filesystem.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows net use maps to mount / smbclient 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

Connect to network shares

Mounts a network share (Windows SMB/CIFS share or NFS) so you can access it like a local folder.

smbclient //server/share

Browse a Windows share interactively

mount -t cifs //server/share /mnt/point

Mount SMB share permanently

mount -t nfs server:/share /mnt/nfs

Mount NFS share

Ready to run

Copyable Linux commands

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

sudo apt install cifs-utils
sudo mount -t cifs //192.168.1.10/SharedDocs /mnt/share -o username=john
smbclient //server/share -U john

Walkthrough

Examples with explanations

# Windows: net use Z: \\server\share

# Install SMB support:
sudo apt install cifs-utils

# Mount a Windows share:
sudo mount -t cifs //192.168.1.10/SharedDocs /mnt/share -o username=john

# Browse without mounting:
smbclient //server/share -U john

Reference

Common options and variations

Command or optionUse
smbclient //server/shareBrowse a Windows share interactively
mount -t cifs //server/share /mnt/pointMount SMB share permanently
mount -t nfs server:/share /mnt/nfsMount NFS share
umount /mnt/pointUnmount a share
df -hVerify the share is mounted

Distro differences

Debian/Ubuntu vs Fedora vs Arch

Debian/Ubuntu, Fedora and Arch all use "mount / smbclient" 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 mount / smbclient Same command on this distribution.
Fedora same command mount / smbclient Same command on this distribution.
Arch same command mount / smbclient Same command on this distribution.

Keep learning

Related Networking commands