Linux Commands Helper
💬 Your AI-powered Linux assistant
smbclient Command - Access Windows/Samba Shares
The smbclient command is a command-line tool that allows you to access shared folders and files on Windows or Samba servers using the SMB/CIFS protocol.
Syntax
smbclient //[server]/[share] [options]
Examples
smbclient //server/share -U username
Connect to a share on a server with a username.
smbclient //192.168.1.10/public -U guest
Access a public share as guest.
smbclient //server/share -U user%password -c "ls"
List files in a share using a command.
Notes
- smbclient provides an FTP-like interactive shell for SMB shares.
- Supports file upload, download, directory listing, and more.
- May require installation of the
samba-client
package.